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.
- Click the FreeAITokens icon in your menu bar or system tray and choose Add a provider.
- Pick a provider. The app opens its sign-up page and tells you exactly what to click.
- 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 claudeOnly that session uses free models; run claude normally for your own account.
Codex
npx freeaitokens codexGemini CLI
npx freeaitokens geminiOpenCode
npx freeaitokens setup opencodeThen 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 vscodeUse zed or jetbrains instead of vscode.
Cline, Continue, Roo Code, Crush
npx freeaitokens setup clineOr the tool's own name instead of cline.
Kilo Code, Qwen Code, Goose, Aider
npx freeaitokens aiderOr 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.