Connect a model
Sign in with a Claude, ChatGPT, OpenCode or OpenRouter account, paste an API key, or add any OpenAI-compatible endpoint, then pick the model an agent uses.
Available now. A current user-facing path exists within the stated scope.
On this page
- Ways to connect
- Connect your first provider
- Sign in with a browser
- Use a Claude Pro or Max plan
- OpenCode Go and Zen
- Paste an API key
- Add an OpenAI-compatible endpoint
- Add another provider
- Use more than one account
- Where your keys are kept
- Choose the model an agent uses
- Set reasoning effort
- Read a connection's status
- When connecting fails
Ways to connect
Bandicot reaches a model in four ways: an account you sign in to, an API key you paste, a custom endpoint, or a model that runs on your Mac.
Bandicot is not a model. Each connection belongs to the profile you are using, and the Mac app keeps each key and sign-in in the macOS Keychain. Local models need no account at all: see Local models.
Everything on this page lives in the AI Gateway. Open Home (double-tap ⌘), then Account › AI Gateway. Its tabs, in order, are Providers, Models, Decisions, Agent, Usage, Analytics, Activity and Habits.
| Way | Examples | Who bills you |
|---|---|---|
| Sign in with an account | Claude account (Pro, Max or Team, through Claude Code), ChatGPT account (Plus or Pro, through Codex), OpenCode Go, OpenCode Zen, OpenRouter | Your plan or credit with that provider |
| Paste an API key | OpenAI, Anthropic, OpenRouter, Groq, DeepSeek, Mistral, xAI, Meta, Cerebras, Fireworks, Together, Baseten, NVIDIA, Hugging Face, Moonshot AI, Z.AI, Qwen Token Plan, Ant Ling, Xiaomi, Kimi For Coding, MiniMax, Vercel AI Gateway, TypeSafe, Google Gemini (a Gemini API key) | The provider, per token |
| Custom endpoint | Any OpenAI-compatible server, an Anthropic Messages server, Azure OpenAI, Cloudflare AI Gateway, Cloudflare Workers AI | Whoever runs the endpoint |
| Local model | A model downloaded to this Mac | Nobody; it uses your Mac |
| Not supported yet | Google Vertex, Amazon Bedrock, GitHub Copilot | They show in the list but cannot connect |
Connect your first provider
Open AI Gateway › Providers, sign in or paste a key on a provider's tile, then pick one of its models in the prompt bar or on the tile.
The top of Providers says Routing to <model> and Through <provider>, or No model selected. A count line below it says how many providers are connected and how many models are on. Your connected providers are under Your providers, grouped as Anthropic, OpenAI, OpenCode and TypeSafe, plus any vendor you added. The Anthropic group has a Claude account and an API key; the OpenAI group has a ChatGPT account and an API key; OpenCode has Go plan and Zen; TypeSafe holds the decision models behind Decisions.
Each connection shows a status pill, and the one that is in use carries a Routing chip. Until something is connected, the prompt bar reads Connect a provider to send · /connect. Typing /connect or choosing File › Connect… opens a smaller Connect panel for the same job.
- Open Home (double-tap
⌘), then Account ›AI Gateway, and stay onProviders. - Find the provider's tile.
- For an account, press its sign-in button, such as
Sign in with ChatGPT, and confirm in the page that opens. For a key, paste it into the key field and pressConnect. - When the tile reads
Connected, pressUsebeside one of its models, or choose the model from the model menu in the prompt bar. - Send a message. New turns use the model you picked.
If it goes wrong
- The Connect panel says
Pick a provider first, then paste its API key. - Choose a provider from the list before you paste.
Paste an API key for <provider> first.- The key field was empty. Paste the key, then press
Save key. No provider is callable right now - connect one or pick a local model.- Every connection is signed out or off. Connect one again, or pick a local model.
Sign in with a browser
For an account such as OpenCode, OpenRouter or ChatGPT, press the sign-in button, approve Bandicot in your browser, and the app switches to it as soon as the provider confirms.
In AI Gateway the buttons read Sign in with Claude, Sign in with ChatGPT, Sign in with OpenCode and Sign in with OpenRouter. On an account that is already signed in the button reads Sign in again. In the Connect panel there is one button, Sign in with browser, after you pick the provider.
While it waits, the tile shows Finish signing in to <provider> in your browser. with a button to open the sign-in page. The Connect panel shows Finish sign-in in your browser. If it did not open, visit <address>, sometimes a code to type under Enter code, and Waiting for confirmation… this updates automatically. When it is done it reads Signed in.
OpenCode signs in through the OpenCode console, which covers both Go and Zen. OpenRouter turns your sign-in into a key for Bandicot. A ChatGPT account signs in through Codex. The OpenCode and OpenRouter tiles also take a pasted key instead: look for Or paste a Go key. or Or paste an OpenRouter key.
- Press the sign-in button on the provider's tile.
- Approve Bandicot in the browser page that opens. Enter the code if the page asks for one.
- Come back to Bandicot. The tile changes to
Signed inby itself.
If it goes wrong
The OpenRouter sign-in timed out. Start again.orNo OpenRouter sign-in is open. Start again.- Press the sign-in button again and finish in the browser without closing Bandicot.
OpenRouter refused the sign-in. Start again.- You declined in the browser, or the request was stale. Start again and approve it.
OpenAI account sign-in expired. Reconnect the OpenAI account in AI Gateway.- Open AI Gateway ›
Providersand pressSign in againon the ChatGPT account. Your OpenCode sign-in ended. Sign in again in AI Gateway.- Open AI Gateway ›
Providersand sign in to OpenCode again.
Use a Claude Pro or Max plan
A Claude account signs in through Claude Code, so install Claude Code on this Mac first, then press Check again.
Until Claude Code is installed, the tile shows Claude Code needed and says that Claude accounts sign in through Claude Code. The Claude account is separate from the Anthropic API key, which is billed per token.
You can also connect with a token: run claude setup-token in Terminal and paste the token it prints under Use a token.
Some sign-in pages end on a code instead of returning to Bandicot by themselves. While Bandicot waits it says If the sign-in page shows a code, paste it here.: paste the code under Paste the code and press Connect. Away from this Mac, open Sign in on another device, open its page on your phone or another computer, sign in to Claude, and paste the code it shows. The iPhone and Android apps have the same code field.
Cancel on the waiting card stops the sign-in: Claude Code's login is closed and the tile goes back to Sign in with Claude.
- In Terminal, install Claude Code:
npm install -g @anthropic-ai/claude-code. - Sign in to Claude Code with your Claude account, as it asks.
- In Bandicot, open AI Gateway ›
Providers, find the Claude account and pressCheck again. - Press
Sign in with Claudeand finish in the browser. If the page shows a code, paste it underPaste the codeand pressConnect. - When it reads
Signed in, pick a Claude model.
If it goes wrong
- The tile still says
Claude Code needed. - Install Claude Code, then press
Check again. Or paste a token fromclaude setup-tokenunderUse a token. Claude Code is not installed, so the plan's limits cannot be read.- Install Claude Code; the limits appear once they can be read.
OpenCode Go and Zen
OpenCode Go is a flat-rate plan with rolling limits and OpenCode Zen is a pay-as-you-go gateway; one OpenCode sign-in connects both.
Sign in with OpenCode, or paste a Go key. A tile also reads Or, signed in to the opencode app? and can reuse the key of the opencode app when it is signed in on this Mac.
In the Connect panel, OpenCode Go shows a Plan limits box with Rolling, Weekly and Monthly use, the time each resets, and a Refresh button. It says Plan limits appear once the key is verified. until then.
If it goes wrong
That key is valid but has no OpenCode Go plan. Subscribe at opencode.ai or paste a Go key.- Add a Go plan to that OpenCode workspace, or paste a key from a workspace that has one.
Signed in. OpenCode reports no Go plan or credit on this workspace yet; add one at opencode.ai to use Go models.- The sign-in worked. Add a Go plan at opencode.ai, then use a Go model.
Signed in. This OpenCode workspace has no Zen balance yet; add credit at opencode.ai to use paid models.- Add credit at opencode.ai, then use a Zen model.
No OpenCode Zen key was found on this Mac.- Sign in to the opencode app first, or paste a Zen key.
OpenCode rejected this API key. Check the key and try again.- Copy the key again from opencode.ai and paste it whole.
Paste an API key
Paste the provider's key into its tile and press Connect, and Bandicot checks it by reading the provider's model list.
A key is checked before it replaces the one you had. On a connected tile the button reads Replace key, and Keep current key backs out. If the provider rejects the new key, the earlier one is kept.
Tiles that need a key point to where to get one with Get a key. In the Connect panel the field is named <provider> API key and the button is Save key.
- Copy the key from the provider's console.
- Open AI Gateway ›
Providersand find the provider's tile. For a vendor that is not listed yet, search underAdd a provider. - Paste the key and press
Connect. - Wait for
Connected. The provider's models appear on the tile and in the model picker.
Add an OpenAI-compatible endpoint
In AI Gateway › Providers, press Custom endpoint, give it a name, an ID, the base URL and the API protocol, then press Save endpoint.
Use this for a server that speaks the OpenAI Chat Completions or Responses API, or the Anthropic Messages API: a local server, a company gateway, Azure OpenAI with your resource URL, or a provider Bandicot does not list.
The form says that remote endpoints require HTTPS, while an endpoint on this Mac (localhost) may use plain HTTP. Give each account on the same service its own provider ID. To change an endpoint later, press Edit on its tile; the form then offers Save changes.
- Open Home (double-tap
⌘), then Account ›AI Gateway, and stay onProviders. - Press
Custom endpoint. - Fill in
Connection name, aProvider IDin lowercase letters, digits and dashes, and theBase URL. - Choose the
API protocoland theAuthentication header, and paste the key if the endpoint needs one. - If the server has no model list, add the models by hand, one per line.
- Press
Save endpoint, then pick one of its models.
| Field | What to put |
|---|---|
Connection name | The name you see in the model picker. |
Provider ID | A short id such as my-gateway: a lowercase letter first, then letters, digits or dashes. |
Base URL | The address before /models or /chat/completions. |
API protocol | Chat Completions, Responses API or Anthropic Messages. |
Authentication header | Authorization: Bearer, x-api-key, or No credential. |
API key (optional; can connect after saving) | The key, if the endpoint needs one. |
| Models box | Optional, one per line: ID | name | context tokens | protocol. |
Add OpenCode session header | Sends the session header an OpenCode-style gateway expects. |
Request streamed usage totals | Asks the server to report token use while it streams. |
Add another provider
Below your providers, Add a provider lets you connect another vendor with its key, or any compatible endpoint, with a search box and a preset card for each vendor.
Type in the search box, which reads Search <count> providers, to narrow the list, or press Show all <count> to see every vendor instead of the first few. Press a vendor to open a key field, paste the key and press Connect.
Vendors that can only be reached through a custom endpoint, such as Azure OpenAI and the Cloudflare gateways, are folded away: press the button that reads Show or Hide followed by a count and that need a custom endpoint.
If nothing matches, the page says No provider matches “…”. Add it as a custom endpoint. Press Custom endpoint and add it yourself.
Use more than one account
A provider tile can add another account of the same kind once one is connected, such as a second ChatGPT or Claude sign-in or a second OpenRouter key.
The buttons read, for example, Add another ChatGPT account, Add another Claude account, Add another Anthropic key, Sign in another Go account, Sign in another Zen account, Sign in another OpenRouter account or Add another OpenRouter key. The model menu adds the account name only when two accounts serve the same model.
With two ChatGPT or two Claude sign-ins, a turn that reaches one account's limit continues on the other. Account limits explains it.
A connection made on another profile of this Mac shows a note that another profile on this Mac connected it, with a Use on this profile button. Press it to share that connection, or disconnect it on the other profile to connect your own.
If it goes wrong
Other profiles on this Mac use this connection.- Disconnect it on those profiles first, or keep it and use it here too.
Where your keys are kept
The Mac app keeps each key and sign-in in the macOS Keychain, and does not fall back to a plain file when the Keychain refuses.
If the Keychain cannot be used, the save fails with the line Unlock your Mac to use your saved keys and nothing is written elsewhere. Unlock your Mac, allow Bandicot when macOS asks for Keychain access, and save again.
To sign out of a provider, press Disconnect on its tile, or Remove to drop a connection you added, and confirm. You can then connect it again with another account.
Choose the model an agent uses
Pick a model from the model menu in the prompt bar, or press Use beside it in AI Gateway; new turns go to it.
⌘P opens Select provider, and ⇧⌘M (Model › Select Model) opens the local model library.
The models of a signed-in or keyed provider are listed on that provider's tile on Providers. The tile counts how many are ready, with a Refresh button. Each model has a switch to turn it on or off, a Use button that sends new turns to it, and an In use chip on the one that is selected. A checkbox named for the provider turns all its models on or off at once. A model that the account does not include reads Unavailable from this account.
The Models tab is one board for what runs on this Mac and for Decisions. Two cards at the top show what is in use: Chat, or The Rack picks per turn when you run from the Rack, and Decisions, which reads None turned on until you pick one. A Filter models box narrows the list. The button on a row reads Use, Turn on & use for a model that is off, Use for S1 for a Decisions model, and Switching… while it changes. Two folds at the foot hold the library for downloading models to this Mac and the Rack; see Local models.
Catalogs refresh by themselves; Refresh all models under Your providers reads them now.
If it goes wrong
No models on this Mac yet.on theModelstab, with a note to download a model below and that account models are in Providers.- Connect a provider on
Providers, or download a model in the fold of the same tab. No model matches this filter.- Clear the text in
Filter models. No models listed yet. Refresh to ask this account.- Press
Refreshon that account's tile. If it stays empty, check the account is connected. - A model row says
Unavailable from this account. - The account or plan does not include that model. Pick another, or connect an account that has it.
Set reasoning effort
In the prompt bar's model menu, pick a model, then pick an Effort; only models that can think longer show the choice.
The levels are None, Low, Medium, High, Extra high and Max. A local model takes sampling settings instead.
The default for new agents is Thinking depth in AI Gateway › Agent › Behavior, which recommends Medium.
Read a connection's status
Every connection shows one status word, and the ones that need you read Needs attention, Claude Code needed or Not connected.
The words below appear on AI Gateway tiles and in the Connect panel. The foot of Providers also keeps Connection activity: connects, refreshes, switches and failures, newest first.
| Status | Meaning | What to do |
|---|---|---|
Signed in · <plan>, Signed in | The account is connected. | Nothing. |
Key saved, Connected | A key is saved and the provider accepted it. | Nothing. |
Signing in | A browser sign-in is waiting. | Finish it in the browser. |
Needs attention | The last check failed. | Read the message on the tile and press Retry or Sign in again. |
Claude Code needed | The Claude account needs Claude Code. | Install it; see Claude plans. |
Not connected | Nothing is connected for this provider. | Connect it. |
Open | The provider needs no key. | Nothing. |
When connecting fails
A failed connection keeps your previous key, and the message names what to fix: the key, the URL, the network or the provider.
Errors that come back from a provider during a turn, after it connected, are listed in Troubleshooting.
| Message | What to do |
|---|---|
The provider rejected this API key (401). The previous credential was preserved. | Copy the key again; check it is for this provider and not revoked. |
This API key cannot access the provider model catalog (403)… | Give the key permission to list models in the provider's console. |
The provider is rate limiting connections. Try again shortly. | Wait a minute and try again. |
The provider did not return a usable /models catalog. Check its base URL and API compatibility. | Fix the base URL, or add the models by hand on a custom endpoint. |
The provider model catalog could not be reached. Check the network, base URL, and API key. | Check the connection and the URL. |
Key saved, but the catalog failed: … | The key is stored. Press Refresh once the cause is fixed. |
TypeSafe rejected this key (401).… | Copy a fresh key from the TypeSafe console. |
The host rejected these connection settings. | Check the provider ID, base URL and authentication method. |
An API key is required to connect this provider. Enter one in /connect. | Paste a key for it. |
Questions
Can I use my Claude Pro or Max plan with Bandicot?
Yes. Install Claude Code on the Mac and sign in to it, then press Check again on the Claude account in AI Gateway. You can also paste a token from claude setup-token.
Can I use a ChatGPT Plus or Pro account?
Yes. Press Sign in with ChatGPT in AI Gateway; it signs in through Codex. An OpenAI API key is a separate row, billed per token.
Does Bandicot work with any OpenAI-compatible server?
Yes. Add it as a custom endpoint with its base URL and protocol. Remote servers need HTTPS; a server on your Mac may use HTTP.
Where does Bandicot store my API keys?
In the macOS Keychain on the Mac app. If the Keychain refuses, the save fails rather than writing the key to a file.
Can I connect two accounts of the same provider?
Yes. Press the Add another button on its tile. With two ChatGPT or two Claude sign-ins, a turn that reaches one account's limit continues on the other.