Guides
Claude Code
Connection
| Setting | Field | Value |
|---|---|---|
| Base URL (Anthropic format) | ANTHROPIC_BASE_URL | https://api.offmem.app |
| Key | ANTHROPIC_AUTH_TOKEN | Create key |
| Main model | ANTHROPIC_MODEL | offmem-glm-5.3-sem-censura |
| Fast model | ANTHROPIC_DEFAULT_HAIKU_MODEL | offmem-glm-5.3-flash-sem-censura |
Setup
Paste the prompt into Claude Code and it edits its own configuration, or edit the files yourself:
~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json)
Configure Claude Code to use offmem (an API compatible with Anthropic). The key is already in the OFFMEM_API_KEY environment variable; do not show the key in your reply.
Create or edit ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json), merging this content without deleting what is already there:
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.offmem.app",
"ANTHROPIC_AUTH_TOKEN": "COLE_SUA_CHAVE_AQUI",
"ANTHROPIC_MODEL": "offmem-glm-5.3-sem-censura",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "offmem-glm-5.3-sem-censura",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "offmem-glm-5.3-sem-censura",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "offmem-glm-5.3-flash-sem-censura",
"CLAUDE_CODE_SUBAGENT_MODEL": "offmem-glm-5.3-sem-censura",
"CLAUDE_CODE_MAX_CONTEXT_TOKENS": "200000"
}
}
Replace COLE_SUA_CHAVE_AQUI with the value of the OFFMEM_API_KEY environment variable (this file does not read variables).
At the end, tell me: Reopen Claude Code and run /status: "Anthropic base URL" should show the offmem address.Replace COLE_SUA_CHAVE_AQUI with the value of the OFFMEM_API_KEY environment variable (this file does not read variables).
Reopen Claude Code and run /status: "Anthropic base URL" should show the offmem address.