Your own API key
Direct mode: run aimo on your own provider API key, with no Bosphorus platform — what it gives up, how the key is kept, and how to move back.
For aimo 1.4.8 · checked against that release on 22 November 2026
With no Bosphorus installation, aimo runs on your own provider API key instead. This is direct mode: your chats go straight from VS Code to the provider you choose, on your key, and nothing the platform adds applies to them.

Set it up
Run AIMO: Use Your Own Provider API Key… — or choose Use your own API key in the walkthrough, or Switch Connection in Home’s title menu — and choose where your chats go:
| Provider | Notes |
|---|---|
| OpenRouter | Many providers behind one key; it reports what each request cost |
| Hugging Face | The inference router, with one entry per serving provider |
| Evren | Serves from Türkiye. Keys start with evren_llm_, and you accept its terms of use yourself |
| Novita | Keys start with sk_ |
| Cerebras | Keys start with csk- |
| Custom endpoint | Your own: any OpenAI-compatible API, such as https://llm.example/v1, or a model server on this machine at http://127.0.0.1:1234/v1 — no key is needed there. For LM Studio, aimo reads each model’s context window from LM Studio’s own model list: the window the model is loaded with |
Then paste the key, and pick the model your key pays for.
What changes — shown before anything is sent
The first time on a machine, before anything leaves it, aimo shows what direct mode means:
- Your messages, the files you attach and the output of tools go straight to that provider.
- The platform’s policy checks and guardrails, quotas, audit trail and activity pages, curated models, tool servers and vault do not apply.
- Direct mode is this window’s alone. It signs nobody out: your platform key, sign-in and vault session stay on this machine for your windows on the platform, and the direct-mode window never uses them.
After that, the platform hears nothing from this window: no sign-in, no tool-server registry, no relay, no announcements, no vault. A switch made in the Settings editor, or arriving through Settings Sync, asks at the first Send, before anything leaves.
The key
- It is checked with the provider without spending a token before it is kept.
- It is kept in VS Code’s secret storage on this machine, tied to that provider’s address, and sent only to that provider. It never goes into a setting, a log or a chat.
- It is shown only as its last four characters.
- AIMO: Set the Provider API Key… replaces it, checking the new one first. AIMO: Remove the Provider API Key… deletes it.
The model
In direct mode aimo never picks a model for you: your key pays for every token, so the choice
is yours. AIMO: Select Model lists the provider’s chat models, with a row to type an id. The
model you last used with a provider comes back when you return to it. As on the platform, each
chat keeps its own model, and new chats start on the one you picked last (aimo.direct.model).
Evren’s terms of use
Evren asks you to accept its terms of use. aimo never accepts them for you: choose Read the terms, then I accept version N, or run AIMO: Evren Terms of Use….
Home in direct mode
Home shows the provider, the key’s last four characters, the model, the last minute’s requests and tokens (with “no limit reported”, since no platform sets one), and today’s totals with the cost as the provider reports it. OpenRouter reports a cost; when it does so for only some requests, Home says for how many. Evren prices in its own credits rather than dollars, so Home shows its daily token quota instead.
A chat asks before it moves
Continuing a chat somewhere else — from the platform to a provider, back to the platform, or to another provider — sends its whole history there. So aimo asks first, and names where it would go, including the platform’s audit trail when you return. New chat starts afresh with your message instead.
What a repository cannot do
A repository you open cannot switch the connection, choose the provider, the endpoint or the
model, or raise what a turn may spend. In direct mode aimo.maxAgentSteps,
aimo.maxOutputTokens, aimo.contextTokens, aimo.mcp.directToolBudgetPercent and
aimo.systemPrompt are read from your own user settings only.
Tools in direct mode
- Your own tool servers on this machine work, without a platform check, since there is no platform — see Tool servers on this machine. While a platform key is on this machine they do not run in a direct-mode window: the platform decides about them while it governs you. Use them in a window on the platform, or sign out of the platform first.
- The platform’s tool servers, the recipes it registers and the vault are not available.
- The MCP traffic log keeps working, sealed with this machine’s key only, and never leaves the machine.
One window, not the machine
Every VS Code window keeps its own connection, provider and model, so one window can run on your own key while another stays on the platform. The first time a new window uses aimo, it asks whether to copy another window’s settings or start fresh; AIMO: Settings of This Window… (also in Home’s title menu) shows, copies or resets them at any time. A change made in the Settings editor applies to the window you make it in. Keys stay per provider and per gateway, not per window: a window that copies another’s provider uses the key this machine already holds for it.
Back to the platform
AIMO: Switch Connection (Platform or Your Own Key)… takes this window back to the platform, with the sign-in this machine still holds for it, or a new one. Your provider key stays stored until you remove it.