Skip to content

Connect Claude, Cursor, Codex or OpenRouter

Open the agent → AI Model (under General). The screen lists the models available to the agent — leave Default (recommended) or pin one — and below it, under Bring your own subscription or key, you can connect one of these at a time:

The AI Model screen with the model list and subscription harnesses

OptionYou needRuns as
ClaudeA Claude Pro or Max subscriptionClaude Code in the agent’s container
CursorA Cursor accountCursor CLI in the agent’s container
CodexA ChatGPT accountOpenAI Codex in the agent’s container
OpenRouterAn OpenRouter account with creditsTeleClaw’s own agent, with its AI calls paid from your OpenRouter key

While Claude, Cursor or Codex is connected, the model runs on your plan, so TeleClaw credits are not spent on it. Everything else stays on credits: the container the harness runs in costs a small compute fee per turn, and image and video generation, voice, web search and the other paid tools are paid in credits too. So your agent needs a credit balance to run. Connecting a harness requires TeleClaw Pro.

With OpenRouter connected, the agent’s AI tokens are billed to your OpenRouter account instead of TeleClaw credits. Everything else stays on credits, exactly as with the subscriptions: the container, image and video generation, voice, web search and the other paid tools. So the agent still needs a credit balance to run.

  1. Tap Authorize with Claude Code — claude.ai opens.
  2. Approve the request. Anthropic shows an authorization code.
  3. Copy the code back into the Authorization code field and confirm.

Tap Authorize with Cursor, finish signing in on the page that opens. The screen updates by itself once Cursor confirms — you don’t need to paste anything.

  1. Tap Authorize with ChatGPT. TeleClaw shows a device code.
  2. Copy it, sign in to ChatGPT and enter the code.
  3. The screen updates automatically once ChatGPT confirms.

There are two ways in:

  • Connect OpenRouter: openrouter.ai opens and asks you to approve TeleClaw, which creates a key for it on your OpenRouter account. Come back to Telegram afterwards: the screen updates by itself once the key arrives. The approval has to finish within 10 minutes; after that, tap the button again.
  • Paste a key you already have (it starts with sk-or-v1-) into OpenRouter API key and tap Save key. TeleClaw checks it with OpenRouter before saving it. You can create one at openrouter.ai/keys.

Connecting switches the agent to OpenRouter straight away. The key is stored encrypted and never enters the agent’s container, so nothing the agent runs there can read it.

If OpenRouter refuses a request because your account is out of credits, the key has reached its spending limit or the key was revoked, the agent says so in the chat. The message is never retried on your TeleClaw credits behind your back: add credits on OpenRouter or reconnect the key, or disconnect OpenRouter to go back to TeleClaw credits.

Under Model you can leave Default (recommended) or pin a specific model. For Claude, Cursor and Codex the list is the models your own account offers; for OpenRouter it is TeleClaw’s model list, and whichever you pick runs on your key.

Only one can be active at a time: connecting one makes it the active one. Disconnecting the active one puts the agent back on TeleClaw’s models and credits, even when another one is still connected. An OpenRouter key that is saved but not in use says so on its screen: tap Use OpenRouter to switch back to it. If an authorization times out, start over — the codes are short-lived.