Setup
npm install -g @anthropic-ai/claude-code
Add this to ~/.claude/settings.json (create it if needed) and remove any ANTHROPIC_API_KEY from your shell:
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"env": {
"ANTHROPIC_BASE_URL": "https://platform.yeta.ai",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
"ANTHROPIC_MODEL": "deepseek-v4.1-flash[1m]",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-v4.1-flash[1m]",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-v4.1-flash[1m]",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4.1-flash[1m]",
"CLAUDE_CODE_SUBAGENT_MODEL": "deepseek-v4.1-flash[1m]",
"API_TIMEOUT_MS": "600000"
}
}
Restart Claude Code. [1m] selects the 1M-token context window; leave it off for glm-5.3-flash. For security work the stock model refuses, swap in deepseek-v4.1-flash-uncensored.
Models you can use
- DeepSeek V4.1 Flash API · 1M context, $0.08 / $0.35 per 1M tokens
- DeepSeek V4.1 Flash Uncensored API · 1M context, $0.08 / $0.35 per 1M tokens
All models are self-hosted on Yeta's own GPUs with zero data retention: prompts and outputs are never stored.
Platform: platform.yeta.ai · Email: [email protected] · X: @yetalabs