FreeAITokens

Setup

Two steps: add a few free keys, then point your AI tool at FreeAITokens.

1. Add free keys

2 providers work with no account at all. Every free account you add raises your total.

  1. Click the FreeAITokens icon in your menu bar or system tray and choose Add a provider.
  2. Pick a provider. The app opens its sign-up page and tells you exactly what to click.
  3. Create a free account, copy the key it gives you, and paste it into the app. The app checks the key before saving it.

Good ones to start with: Cerebras and Groq (large free allowances), OpenRouter (one click to connect) and Google Gemini.

Keys stay on your computer, in its keychain where it has one, and are only ever sent to the provider they belong to. Use your own accounts, one per provider. Why that matters.

2. Connect your tool

Your local address is http://127.0.0.1:4949. The app's menu has Copy endpoint and Copy local token for anything that asks.

Claude Code

Start it through FreeAITokens:

npx freeaitokens claude

Only that session uses free models; run claude normally for your own account.

Codex

npx freeaitokens codex

Gemini CLI

npx freeaitokens gemini

OpenCode

npx freeaitokens setup opencode

Then pick the model freeaitokens/free. --undo restores your old settings.

VS Code, Zed, JetBrains

Prints exactly what to paste into the editor's settings:

npx freeaitokens setup vscode

Use zed or jetbrains instead of vscode.

Cline, Continue, Roo Code, Crush

npx freeaitokens setup cline

Or the tool's own name instead of cline.

Kilo Code, Qwen Code, Goose, Aider

npx freeaitokens aider

Or kilo, qwen, goose.

Any other app

If it lets you set a custom OpenAI address:

  • Base URL http://127.0.0.1:4949/v1
  • Model free
  • API key: Copy local token in the app's menu

The commands above need Node.js. If you don't have it, ask your AI to do this part, or get Node.js from nodejs.org.

Not supported

Cursor sends custom addresses through its own servers, which can't reach your computer. The ChatGPT app can't use a custom address at all.