Skip to content

Providers

Claude Code

Set up Claude Code in Octant, add more Claude accounts, run it with its own permission modes, sandbox and tools, its background work and wake-ups, and publishing documents as Claude artifacts.

  • 18 min read
  • 11 sections

Claude Code ​

Claude Code is Anthropic's coding agent; Octant drives it through the Claude Agent SDK, and it is one of Octant's four first-class providers, with Codex, Mistral Vibe and OpenCode.

Claude Code gets each Octant feature in full first. In Settings its card is named Claude Code by default. The name is not in a release yet: it arrives with #3027.

Set up Claude Code ​

  1. Install the Claude Code CLI.
  2. Sign in with the unmodified claude auth login command in a terminal. Check it with claude auth status.
  3. Open Settings → Providers & Models. On first run, a detected Claude Code is added switched on.
  4. Run Check connection and wait for Ready.

The binary path can be an installer's symlink, such as ~/.local/bin/claude on Linux. Connection Check resolves it for the sandboxed version read, so you do not need to select a version-specific installation file. If the saved binary moves, the card offers Use the one found at ... with the path and version, for example ~/.local/bin/claude (2.1.306). See Locate binary.

Octant never reads, copies, stores, or injects Claude credentials or tokens. Connection check uses what the Claude CLI or SDK reports, not files in the account directory. An Anthropic API-key account uses the key you store in Octant for that provider instead.

If you previously connected Claude for helpers, Octant no longer stores that token. Revoke the leftover token with Anthropic.

Add another Claude account ​

You can add more than one Claude account. Each account is its own provider in Settings → Providers & Models.

  1. Open the details of your Claude card and choose Add account. The form opens with Claude chosen, your binary path filled in, and a suggested name such as "Claude Code (2)". Add provider manually opens the same form.
  2. Give the account a name and an accent color, so the model picker can tell them apart.
  3. Sign in only with the unmodified claude auth login command in a terminal for that account. The provider card shows the exact command, including the directory variables Claude expects. Check status with claude auth status.

Octant assigns the first subscription account Claude's default directory (~/.claude). Each additional account, and every API-key account, gets its own directory under ~/.claude-accounts/. A directory you chose earlier keeps working until you re-assign it. Re-assigning starts a new login in the assigned directory, and threads that account already started stay in the old one and cannot continue.

A thread stays on the account it started with until you move it, or until it hands off on a usage limit you opted into (Move a thread to another account). Octant never fails over, rotates, or load-balances between accounts on its own. An Anthropic API-key account uses the key you store in Octant for that provider, on its assigned directory.

Removing an account does not delete its directory. Octant tells you where it is. Delete it yourself to remove that account's sign-in and history.

Sign in through a gateway ​

A Claude account can sign in in a third way — Gateway — alongside a subscription and an Anthropic API key, using a gateway address and token:

  1. In the add-account wizard or on the account's Authentication setting, choose Gateway.
  2. Enter the gateway's address and its token. If your computer's environment already sets a supported ANTHROPIC_BASE_URL, choose Use the address from this computer's environment to fill the address in (Octant never reads or fills in the token automatically).
  3. Run Check connection so Octant reads the model list through the gateway.
  • Accepted addresses: any https address, or plain http only on loopback or a private network (shown with an unencrypted-traffic warning). Public plain http addresses, embedded credentials, queries, and fragments are refused.
  • Isolation: a gateway account runs in its own account directory with ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN, keeping ambient credentials and other Claude accounts separate.
  • Token safety: changing the gateway address, or switching between a gateway and Anthropic's own API, deletes the saved token so a token for one gateway is never sent to another.
  • Adding from a browser: an API-key or gateway account created in a browser is saved without its secret; set its key or token in a terminal on the host with octant provider key set.
  • Availability: gateway accounts use stored tokens rather than a claude.ai subscription, so subscription plan limits and Claude artifacts are not offered on them.

What works natively ​

FeatureClaude Code
Reopen the thread's own sessionYes
Approval prompts from the runtimeYes
Questions from the agentYes
Reasoning shownYes
Token usage countedYes
File changes and diffsYes
Attachments sent nativelyImage models (JPEG, PNG, GIF, WebP)
Octant tools (Browser, Computer)Yes, through a tool server inside the SDK connection
Change model inside a threadYes
Compact sessionYes
Auto-review of approvals in CodeYes, with its own automatic mode

Permissions, sandbox and tools ​

Outside Strict, a Work or Code thread outside Plan runs Claude Code as it runs on its own:

  • Its own permission modes. Ask first runs Claude's default mode, Accept edits acceptEdits, Auto auto, and Full access bypassPermissions. Your own Claude Code permission rules decide each call, and when Claude asks, the ask reaches you as an Octant approval, answered and recorded on the host.
  • Its own sandbox. Octant passes Claude no sandbox settings, so the sandbox runs as your own Claude Code settings configure it. A launch that reads none of your Claude settings runs with no sandbox, on Claude's own permission mode and Octant's checks on every call: protected files, folders outside the session, and Octant's own asks for a command or a publish.
  • Its full tool set. Octant removes none of Claude's built-in tools. A feature you turned off in your own Claude setup, such as subagents, web tools or skills, stays off.
  • Your environment. Claude Code starts with your own environment, so the credentials your own tools use, such as GH_TOKEN, NPM_TOKEN and AWS keys, work inside its commands, and so do other model providers' keys, such as OPENAI_API_KEY. Octant holds back its own variables and the variables Claude Code signs itself in with (ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_OAUTH_TOKEN and CLAUDE_CODE_OAUTH_TOKEN): the account you chose in Octant decides who a turn is billed to, so a key in your shell cannot move a subscription thread to API billing. A command Claude Code runs therefore cannot read your ANTHROPIC_API_KEY. Under Strict it gets a short fixed list; see Let through under Strict.

Octant keeps two asks of its own: a command that wants to run outside Claude's sandbox, which asks every time (at Auto, the reviewer answers), is never remembered and is recorded as run without the sandbox; and a path outside the session's folders, which asks below Full access. Octant also answers Claude's questions, wake-ups and plan-mode switches itself, and refuses one it cannot answer with a reason the model reads.

Approvals you keep for the session. When you keep an approval for the session, Octant hands Claude Code the allow rules it suggested for that call, for this session only. Claude then stops asking for that kind of call, as it does on its own. Nothing is written to your Claude settings files. An answer for one call and a reviewer's answer are not passed on this way, and neither are the asks Octant keeps for every call: a command leaving the sandbox, a path outside the session's folders, a publish, a worktree switch and a wake-up.

A folder outside the Project. Claude Code may work in a folder outside the Project, as it does on its own. At Full access its calls there run. Below Full access a call from such a folder asks you. If you keep that approval, the folder becomes one the session holds; an answer for one call leaves the next call asking. A shell call that itself names an outside folder as its working directory is refused at every level.

Both apply in Work and Code outside Strict. In Plan, in Chat, under Strict, and in a Full access thread that keeps its sandbox, Claude is given a plain yes for one call and stays inside the session's folders.

A message from Claude Code that Octant does not recognise is ignored, so a new Claude Code release does not end a turn for sending something new.

Under Strict, in Plan, and in Chat, Octant keeps its own checks on every call and configures Claude's sandbox itself: reads and writes held to the Project's folders, network per Network limits, and no sandboxed command running without asking. A command that wants to leave the sandbox still asks every time, and is refused in Plan. A Full access thread that kept its sandbox works the same way.

Subagents ​

Claude's own subagents show in the thread as child runs. A running subagent's row has Background and a message control beside Stop, whether Strict is on or off:

  • Background moves that one subagent to the background. The thread's turn carries on while the subagent keeps running.
  • Message sends it a note, delivered once, as yours, on the subagent's next tool call. A subagent that makes no further tool call before it finishes never reads it, and the row says so when you send.

Both reach only the running turn's own session.

When you select Haiku for a Claude Code task in Plan, Octant keeps that model for new turns and resumed sessions instead of allowing Claude Code's automatic switch to Sonnet. Plan remains read-only.

If you store several API keys for a Claude Code account, it uses the first key and does not switch keys within a turn. See Several API keys.

Claude Code keeps its own memory in an account's Work and Code threads unless you turn off Use Claude Code's own memory for the account. See The provider's own memory.

Run Claude Code as itself ​

Claude Code runs as itself unless you turn Run … as itself off for the account or the thread. See Let a provider run as itself for the switches. Claude Code then has:

  • its own system prompt, with Octant's instructions added after it;
  • its whole built-in tool set in Work and Code outside Plan, including tools Claude Code adds in later releases, with no limit on how many tools a turn calls. Outside Strict, Claude's own permission mode and your Claude rules decide each call, as in Permissions, sandbox and tools. Under Strict, a tool Octant has no rule of its own for asks below Full access and runs without asking at Full access;
  • your own permission rules: the allow, ask, and deny rules in Claude's settings, a trusted Project's .claude/settings.json included, apply first, so a command you allowed there runs without a card;
  • its own subagents, each shown in the thread as a subagent run, and its task list, shown in the thread's task panel and read back from Claude's stored list when a session resumes;
  • web search and fetch. Under Strict they ask before each one unless the thread has Full access;
  • the skills, settings, hooks, and plugins in its account folder, and the account's own MCP servers and claude.ai connectors in every Project. Under Strict their tool calls ask below Full access;
  • in a trusted Project, that Project's settings, hooks, skills, and the MCP servers in its .mcp.json;
  • the account's CLAUDE.md and the Project's CLAUDE.md files with their @path imports. Before you trust the Project, Octant reads its CLAUDE.md, .claude/CLAUDE.md, .claude/rules/*.md, and CLAUDE.local.md for Claude as plain text, so Claude still follows them;
  • the claude.ai service tools on your claude.ai account (RemoteTrigger, PushNotification, Projects, and ClaudeDesign). Each answer marks the thread as having read outside content, and under Strict they ask below Full access;
  • EnterWorktree and ExitWorktree outside Plan. The thread notes each switch, and its views stay on its original checkout. Under Strict a switch asks below Full access, and commands cannot write in a worktree outside the Project;
  • REPL, which runs code in Claude's own process, outside any command sandbox. The thread notes each start as unsandboxed. Under Strict it follows the shell's rules: Ask first asks, Auto's reviewer decides, and Full access runs it.

Claude's own git push, gh, and pull-request commands follow its own permission mode, and at Full access run without asking; Octant records each one. Under Strict they ask below Full access rather than being refused. A cd into a folder the session may use keeps working for later commands. Plan stays read-only whatever the switches say.

Run Claude Code on an SSH server ​

Unmerged preview work

This section describes behavior in open pull request #2781, which is not yet in a release.

In a Code Project on one of your servers, a thread can run Claude Code on the server itself, signed in as the server's login, with its own permission modes, sandbox and plan mode, while approvals, Stop and the thread's history stay on this computer. Strict refuses it, and it reads nothing of this computer's Claude account. See Run Codex or Claude Code on the server.

Background work, workflows, and wake-ups ​

Background commands. A Code or Work turn finishes while the background commands it started, such as a dev server or a watcher, keep running. They show above the composer in the Background work row, with Details and Stop. When one finishes or reports and Claude starts a turn by itself, Octant runs that turn in the thread at the thread's current level, and it reads Continued after background work. Claude's session is kept until its last task ends, you stop the thread or change its level, model, checkout, or lifecycle, Octant shuts down, or the thread has had no turn for the Background work limit in Settings → Providers & Models (2 hours by default; it can be turned off). Monitor watches follow the same rules as Bash, except that a WebSocket watch or a watch of a whole session is refused.

Turns a runtime starts by itself, in Settings → Limits, caps how many follow-up turns Claude can start inside one of yours: 256 by default, with no cap at Full access.

Workflows. Claude's Workflow runs while its subagents are on. Each workflow agent shows as a subagent run under the call, its tool calls meet the thread's level, and your turn stays open while it runs. Under Strict, starting a workflow asks below Full access, because its script runs in Claude's own process. Plan never runs one.

Wake-ups. When Claude schedules a wake-up for later (ScheduleWakeup or CronCreate), Octant keeps it, not Claude, and nothing is written to the Project. Under Strict, scheduling one asks below Full access. Each wake-up shows above the composer with its next time, its prompt, and Cancel, and when it comes due Octant starts a turn in that thread at the thread's current level.

  • A wake-up that came due while Octant was not running or the computer was asleep, or whose timer ran more than 2 minutes late, runs once when Octant is back. Turn off Run missed wake-ups on return in Settings → Limits and it shows as Missed instead, with Run now, and never runs by itself.
  • One that comes due while a turn runs waits for that turn to end.
  • A thread holds at most 8 waiting wake-ups, or the number you set in Wake-ups waiting per thread (Octant's own limits). The first run is at least a minute away, and a recurring one can run as often as every minute and ends after 7 days.
  • Archiving or purging the thread ends its wake-ups. Plan and Chat never schedule one, and a paired phone cannot list or cancel them yet.

Plan mode, slash commands, and sessions ​

  • Plan mode. Claude can plan the way it does on its own, and its own requests to enter or leave plan mode become approvals that change the thread's level. Outside Strict, when you approve the plan Claude hands over, Octant starts the next turn itself and Claude begins carrying the plan out, with no further message from you. See Plan mode.
  • Slash commands. Claude Code's own slash commands are listed in the composer in every mode. See Provider slash commands.
  • Rewind. A Code rewind continues Claude's own session cut back at the reply you kept. See Session rollback.
  • Continue a session started outside Octant. An empty Code or Work thread lists the Claude Code sessions you began outside Octant in the same folder on the same account. Choose Continue one, pick a session, and choose Continue in this thread. The thread is marked as having read outside content, because the session read things Octant never saw, and it shows Continues a session started outside Octant with the session's id to copy. The session's earlier conversation shows in the thread as an Imported group, and thread search finds it; see History from a provider's own session. A session still open in a terminal is not detected; using it in both places writes two branches of one conversation. A Work thread uses the folder its turns run in, and its first turn continues the session only on the provider, model, and folder you continued it with.

Claude Code's Code Mode is not available in Octant: it runs only in an interactive terminal.

Claude artifacts ​

A Claude Code account signed in with claude.ai can publish documents, reports, decks and pages as Claude artifacts, through Claude's own Artifact tool. Canvas stays the default.

  1. Open the account's card in Settings → Providers & Models, open its details, and turn on Enable Claude artifacts. It is off for every account until you turn it on, and only the Octant app on the host can change it. A paired device cannot. The warning under the switch, repeated in a confirmation, explains telemetry (below).
  2. Outside Strict, the switch alone offers the Artifact tool to the account's threads in every mode, so Claude Design's /design and /slides work as in Claude Code. A thread's Canvas or artifacts choice only decides which one Octant's own instructions point Claude to.
  3. Under Strict, a Work or Code thread also has to choose artifacts. The first time such a thread makes a Canvas, Octant asks once beneath it: Use Claude artifacts for this thread instead? Answer Use Claude artifacts or Keep Canvas. You can switch either way at any time: in Work, the composer's add (+) menu offers Use Canvas instead of Claude artifacts or Use Claude artifacts instead of Canvas; in Code, the Documents row of the thread's info panel does. The change applies from the next turn. A paired device can switch a thread back to Canvas but cannot turn artifacts on.

What the tool may do:

  • Work and Code get every action: publishing a file, publishing from a Claude type with no local file, reading, listing and updating pages. The page is uploaded to claude.ai and leaves this computer.
  • Publishing a file outside the session's folders asks first below Full access, as writing there would. Publishing from a type asks at the Project and says it sends a page Claude made. At Full access nothing asks, publishing included, as in Claude's own app. A replacement of a page already on your account names that page. Under Strict a thread publishes one Project file only.
  • Chat and Plan can read, list and start from a type, but never publish.
  • Each thread publishes as its own Claude account. Octant never lends one account's sign-in to another, and records which account published each page.

The thread shows a link card under the turn's steps that opens the page in your browser, where you are signed in to claude.ai. Beside it is a snapshot of the file as it was when you approved publishing it. Edits made later on claude.ai are not shown. In a Work thread the snapshot appears when the turn finishes. A page with its own script waits for Run, as an imported HTML page in a Canvas does. Octant never downloads, displays, or signs in to the live page. Every page also appears in the Artifacts library, where a page whose newest publish kept an HTML snapshot offers Copy into Canvas to import it as a Canvas in the publishing thread's Project.

Telemetry. Claude artifacts need Claude Code's usage telemetry to Anthropic. Outside Strict, with Let providers send their own telemetry off, as it is by default, artifacts still work: a thread that uses them sends usage telemetry, and error reports and conversation uploads stay off. Turn the switch on and telemetry follows your own Claude Code settings, as on its own. Provider telemetry and updates lists everything Octant turns off in Claude Code and what it cannot stop. Under Strict, a thread that uses artifacts runs with that telemetry on; error reports and conversation uploads stay off, and every other thread keeps it off.

Whether Claude offers its Artifact tool also depends on your Claude plan and organization. When it doesn't, documents stay Canvases. An account that uses an Anthropic API key has no claude.ai account to publish to, so the setting is unavailable there. If your computer exports CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1, DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1, that opt-out keeps Claude Code's telemetry and Claude artifacts off, and the card says so. Turning the setting off, or a Strict thread's choice, refuses Claude's next publish at once.

Update Claude Code ​

When Settings can see that a newer release exists, it shows Update available (installed → newest) beside Update CLI. Octant reads the newest version from the npm registry once a day. Nothing updates until you click Update CLI. See Update a CLI.

Octant documentation · local-first by design