Use claude code free models, follow below steps:
1. Install claude code cli (with node + npm)
npm install -g @anthropic-ai/claude-code2. Configure Claude Code using a project-level settings file at .claude/settings.local.json in your project root:
Add below in file
{
"env": {
"ANTHROPIC_BASE_URL": "https://openrouter.ai/api",
"ANTHROPIC_AUTH_TOKEN": "<your-openrouter-api-key>",
"ANTHROPIC_API_KEY": "",
"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": "1"
},
"model": "openrouter/free",
"theme": "dark"
}
replace <your-openrouter-api-key> with actual openrouter api key generated at the openrouter.ai
1. MCP server
2. Skills
VsCode Addon
: @ to select different path - folders/subfolders/files
alt M to keep edit mode
Comments
Post a Comment