A quick guide to set up Freemodel AI, offering access to $300 in Codex credits upon sign up for official OpenAI Codex and Anthropic Claude Code clients.
Limited time offer: Get a bonus $100 expiring on May 23rd to test integration with Claude Code. Accounts also include $71/week in continuous credits, generous rate limits, and $5 per referral.
The Anthropic CLI works great with Freemodel AI. Note: Requires Node.js 18+ unless you use the official shell install script.
If you prefer installing via npm, you need Node.js 18 or newer.
node --version
If not installed or less than 18.0.0, install via:
brew install node
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejsThe easiest official way is using the install script:
curl -fsSL https://claude.ai/install.sh | bash
If you prefer npm and have Node 18+ installed:
npm install -g @anthropic-ai/claude-code
If you get EACCES permission errors, prefix with sudo or configure npm's global prefix.
The client reads its config from ~/.claude/settings.json. Create the directory and open the file in a text editor (like nano or VS Code):
mkdir -p ~/.claude
nano ~/.claude/settings.json
# or if you use VS Code: code ~/.claude/settings.json
Paste the following content into the file and save it:
{
"env": {
"ANTHROPIC_API_KEY": "YOUR_API_KEY",
"ANTHROPIC_BASE_URL": "https://cc.freemodel.dev",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
},
"permissions": {
"allow": [],
"deny": []
},
"apiKeyHelper": "echo 'YOUR_API_KEY'"
}
Replace both occurrences of YOUR_API_KEY with the secret you copied in step 1.
Restart Terminal so it picks up the new config, then start the client:
claude
Git Bash is recommended for Windows as it provides a Unix-style shell that handles paths correctly.
Ensure Node.js 18+ is installed, then run in Git Bash or PowerShell:
npm install -g @anthropic-ai/claude-code
Close and reopen your terminal afterwards.
On Windows the config lives at C:\Users\<your-username>\.claude\settings.json. Create the directory and open it in Notepad:
mkdir ~\.claude
notepad ~\.claude\settings.json
Paste the following content into the file and save it:
{
"env": {
"ANTHROPIC_API_KEY": "YOUR_API_KEY",
"ANTHROPIC_BASE_URL": "https://cc.freemodel.dev",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
},
"permissions": {
"allow": [],
"deny": []
},
"apiKeyHelper": "echo 'YOUR_API_KEY'"
}
Replace both occurrences of YOUR_API_KEY with your secret key. Tip: If File Explorer hides files starting with a dot, type the path directly into the address bar to open .claude.
Restart your terminal, then run:
claude
npm config get prefix. If it returns /usr/local, you can add it to your PATH by adding export PATH="$PATH:/usr/local/bin" to your ~/.bashrc or ~/.zshrc file, then restart the terminal.Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSignedsudo or configure npm's global prefix.