<model-id> with a model id and <context-length> with that model’s context_length from the Models page.
Use one key per tool, so you can see each tool’s spend and revoke it on its own.
Any OpenAI-compatible tool
Tools that speak the Anthropic format use
https://api.aesoteric.ai as the base URL, without /v1.
Claude Code
Set these in your shell, then startclaude:
ANTHROPIC_DEFAULT_HAIKU_MODELcovers the background tasks Claude Code would otherwise send to a Claude model.CLAUDE_CODE_MAX_CONTEXT_TOKENStells Claude Code the real context size of the model you chose. Without it, Claude Code can send prompts longer than that model accepts, and those are answered400.- Claude Code’s WebSearch tool is refused, because there is no web search. To keep it from being tried, deny it in
.claude/settings.json:
Codex
Codex uses the Responses format. Add a provider to~/.codex/config.toml:
~/.codex/config.toml
- Codex’s web search tool is removed from each request, so you don’t need to turn it off.
- Codex offers its
apply_patchtool only when its model metadata asks for it. Without that, it edits files with shell commands. Both work.
Pi
- Add an
aesotericprovider to~/.pi/agent/models.json, merging it intoprovidersif the file exists. The Pi tab on the API keys page has this file filled in for every model. To write it yourself, add one entry tomodelsper model, and inthinkingLevelMapmap each Pi level to an effort from that model’sreasoning.supported_efforts, or tonullif it isn’t listed. Setreasoningtofalseif that model lists no efforts:
~/.pi/agent/models.json
input is that model’s architecture.input_modalities. maxTokens is Pi’s own cap on one answer, not a model limit.
- Set your key in the shell that starts Pi:
- Start
pi, run/modeland choose a model.
OpenCode
Add a custom provider toopencode.json in your project, or to ~/.config/opencode/opencode.json:
opencode.json
opencode and choose aesoteric/<model-id> with /models:
providers, package, settings) that OpenCode 1.19.6, the latest release as of November 2026, doesn’t read, so use the format above. See opencode.ai.
Cursor
- Open Cursor Settings > Models.
- Turn on OpenAI API Key and paste your Aesoteric key.
- Turn on Override OpenAI Base URL and enter
https://api.aesoteric.ai/v1. - Add
<model-id>as a custom model and choose it.