---
title: "Claude Code, Codex & Desktop on company accounts · Selan"
description: "Install selan, sign in once, and Claude Code, Codex and Claude Desktop run on your company's accounts, with your usage and limits on the statusline."
url: https://selan.ai/docs
updated: 2026-11-22T19:32:00+02:00
---

Start here

Docs

# Run Claude Code, Codex and Claude Desktop on company accounts

One command to install, one to sign in, and Claude Code, Codex and Claude Desktop run exactly as they always did, against your company's accounts instead of your own.

## All docs

Start here

-   [Statusline](https://selan.ai/docs/statusline)What each meter on the Claude Code statusline means
-   [Models & providers](https://selan.ai/docs/providers)Which models run on which of your accounts
-   [Google Vertex](https://selan.ai/docs/vertex)Claude on your own Google Cloud project

Apps

-   [Claude Desktop](https://selan.ai/docs/claude-desktop)Run the desktop app on your company's account
-   [Import your data](https://selan.ai/docs/claude-desktop/import)Bring your claude.ai chats and projects over
-   [Codex](https://selan.ai/docs/codex)Run OpenAI Codex with one command
-   [OpenCode](https://selan.ai/docs/opencode)Run OpenCode on your company's models and connectors
-   [JetBrains IDEs](https://selan.ai/docs/jetbrains)Claude Code in IntelliJ, GoLand and Android Studio, set up with one command
-   [Herdr](https://selan.ai/docs/herdr)Your agents and Reactor's questions in one Herdr window
-   [Apps](https://selan.ai/docs/apps)Run Hermes Agent, Paperclip, OpenHands, OpenClaw and more on your company's accounts
-   [Hermes Agent](https://selan.ai/docs/hermes)Nous Research's terminal agent on your models and connectors
-   [Paperclip](https://selan.ai/docs/paperclip)A web app for a company of AI agents
-   [OpenHands](https://selan.ai/docs/openhands)A web app for coding agents and their automations
-   [OpenClaw](https://selan.ai/docs/openclaw)An assistant you chat with that uses tools on its machine

Tools (MCP)

-   [MCP connections](https://selan.ai/docs/mcp-connections)Every tool Selan can connect Claude to
-   [Browser Extension](https://selan.ai/docs/browser-extension)Let agents use tabs in your own Chrome
-   [Selan MCP](https://selan.ai/docs/mcp)Your Selan data and remote agents over MCP

Agents

-   [Agents in CI](https://selan.ai/docs/agents)Run an agent in GitHub Actions or GitLab CI
-   [Code review](https://selan.ai/docs/agents/code-review)An agent that reviews every pull request
-   [Minimise comments](https://selan.ai/docs/agents/minimise-comments)An agent that deletes comments that restate the code
-   [Runners](https://selan.ai/docs/runners)Run remote agents on machines your company keeps on
-   [Phone app](https://selan.ai/docs/phone-app)Your agents on your phone: answer their questions, chat and call Selan
-   [Virtual identities](https://selan.ai/docs/virtual-identities)Create Google accounts on your company's domain with Cloud Identity Free

Build

-   [API](https://selan.ai/docs/api)Call Selan from your own code
-   [Claude Agent SDK](https://selan.ai/docs/claude-agent-sdk)The Claude Agent SDK on your company's accounts
-   [Codex SDK](https://selan.ai/docs/codex-sdk)The Codex SDK on your company's accounts

Security & cost

-   [Hiding secrets](https://selan.ai/docs/secrets)How credentials are removed before the model sees them
-   [Own proxy](https://selan.ai/docs/self-hosted)Keep every key in your own vault, behind your VPN
-   [Practices](https://selan.ai/docs/practices)What your Claude Code sessions cost, and what to change

Reference

-   [Reference](https://selan.ai/docs/reference)Every command, environment variable and error message

Get started

01

### Install

One binary for macOS, Linux and Windows.

[`curl -fsSL https://dl.selan.ai/install.sh | sh`](#install)

02

### Sign in

Google or Microsoft. A revocable session token is all that lands on your machine.

[`selan login`](#sign-in)

03

### Run

Claude Code runs as it always did. `selan codex` does the same for Codex, `selan opencode` for OpenCode, `selan cursor` for Cursor's agent and `selan grok` for Grok Build.

[`selan claude`](#run)

## How do I get a Selan account?

If a colleague has already set your company up, ask them to invite you. Joining an existing workspace is by invitation unless an owner has switched that off. There is one alternative, off until somebody turns it on: an owner can let colleagues join without an invitation when they sign in through the same Google Workspace or Microsoft work account your company's domain was claimed with. Somebody who joins that way lands as a read member, and a read member can still sign in on the CLI and spend against your limits, which is why the switch says so beside itself.

If nobody has yet, create the workspace yourself at [auth.selan.ai/r](https://auth.selan.ai/r). Sign in with Google or Microsoft; there is no invite code and no allowlist. Selan names the workspace after your domain and you can change that on the next screen. Your domain is held for the workspace only when you sign in with a Google Workspace or Microsoft work account that vouches for it; with a personal account, colleagues join by invitation.

Whoever creates it is its **owner**: the role that connects provider keys, switches models on, mints API tokens and sets spend limits.

If someone at your domain got there first, you will be told so and shown who to ask. Selan will not drop you into a second workspace beside theirs.

## How do I install Selan?

macOS and Linux, Intel or ARM:

```bash
curl -fsSL https://dl.selan.ai/install.sh | sh
```

Windows, in PowerShell:

```powershell
irm https://dl.selan.ai/install.ps1 | iex
```

It installs a single binary called `selan`, plus a second name, `seland`, that [skips permission prompts](#seland). On macOS and Linux it lands in `~/.local/bin` (`/usr/local/bin` when you run the installer as root); on Windows in `%LOCALAPPDATA%\Programs\selan`. A fresh install needs no `sudo` or administrator rights, and neither does `selan update` on one (an older `/usr/local/bin` install still does; see [Staying up to date](#staying-up-to-date)). Set `SELAN_INSTALL_DIR` to put it somewhere else. If that directory is not on your `PATH`, the installer adds it, and prints the one-liner that fixes the shell you are already in, since the change only reaches shells started afterwards.

**An install from before `~/.local/bin` was the default stays in `/usr/local/bin`** and keeps updating there. If that copy comes first on your `PATH`, the installer says so after it finishes, leaves the old copy as it was and prints the `rm` line that removes it.

Claude Code is a prerequisite. Selan launches it; it does not bundle it:

```bash
curl -fsSL https://claude.ai/install.sh | bash
```

Either order works. Inside WSL, use the Linux installer. A WSL session is Linux, and it needs Claude Code installed inside WSL too.

Selan needs Claude Code 2.1.283 or newer for everything it sets up to take effect. With an older one, `selan claude` names both versions, tells you to run `claude update`, and launches anyway.

**Tab completion.** The installer sets up fish and bash completion by itself, bash through bash-completion. For zsh and PowerShell it prints the line to add, and it never edits a startup file:

```bash
source <(selan completion zsh)                                # ~/.zshrc
eval "$(selan completion bash)"                                # ~/.bashrc, without bash-completion
selan completion powershell | Out-String | Invoke-Expression   # $PROFILE
```

`selan help _command_` prints any command's whole page, and on macOS and Linux `man selan` has all of them.

**A computer that cannot run the Selan CLI.** Open [Claude Code config](https://control.selan.ai/claude-config) in the web app (the CLI step of **Install** links to it) and press **Generate config**. It shows a script for Windows in PowerShell and one for macOS and Linux, each with an update command for later. Run the script once in a terminal, then start plain `claude`: it uses your company's models and connectors, and its usage is yours. Generating again ends the previous config, which otherwise stays valid for 90 days. On Windows the script checks for your company's model and connector changes every hour; elsewhere, run the update command after one.

Not carried over without the CLI: commit attribution, the status line, shared auto-memory, the repository header, self-update, and connectors that sign in with your company's own OAuth app.

## How do I sign in?

```bash
selan login
```

Opens your browser for Google or Microsoft sign-in. Over SSH, where there is no browser to open, it prints a URL to paste instead. What lands on your machine afterwards is a revocable Selan session token and nothing else: no Anthropic key, no OAuth account.

`selan whoami` tells you who you are signed in as and which company; `selan logout` revokes the session and forgets it. Working for more than one company? Sign in to each: see [Several companies](#companies).

## How do I use Selan for more than one company?

selan keeps a session for every company you sign in to, and a folder can say which company it belongs to. Each case below is a few commands.

### You work for two companies

Sign in once to each, picking the company in the browser. The latest `selan login` becomes your default, and the session it replaces is kept.

```bash
selan login                # Acme
selan login                # Globex: the new default, Acme kept
selan account              # both, and which one is the default
```

### Each client's work lives in its own folder

Pin the folder once. The pin goes into that folder's `.selanrc.json` and covers every folder and repository below it, so `selan claude`, `selan codex` and `selan agent-run` anywhere under it spend as that company, and everywhere else as your default.

```bash
cd ~/work/acme
selan project set company Acme
selan project              # spends as Acme, and which file decided it
```

`selan project unset company` removes the pin. While teammates may run an older selan, pin a parent folder rather than a repository: an older selan refuses the field in a repository's committed `.selanrc.json`.

### You want a different default

```bash
selan account use Acme
```

Only `selan login` and `selan account use` move the default. A sign-in a launch asks for, because a session expired or for a pinned folder, never does.

### A folder's company is not signed in

The launch stops and asks rather than spending as your default:

```text
This folder is pinned to Acme (~/work/acme/.selanrc.json), and you're not signed in to it.
  [l] sign in to Acme   [c] continue as sam@globex.example (Globex)   [q] quit
```

Enter signs in. Nothing is remembered, so the next launch asks again. A script, a redirected launch or any `agent-run` has nobody to ask, so it refuses and tells you to run `selan login` in that folder.

### Your default expired and the browser picked another company

If the sign-in lands in a company other than your default's, the launch stops and keeps the new session, so nothing spends as a company nobody chose. Sign in to your default's company, or make the new one the default with `selan account use`.

### You are done with one company

```bash
selan logout Acme
```

With no company named, `selan logout` signs out of the company a launch from here would use: this folder's, or the default. Signing out of the default leaves none, and `selan account use` picks the next one.

### Each company keeps its own Claude Code

The company you used `~/.claude` with keeps it. Every other company gets a profile under `~/.selan/profiles/`, named on `selan whoami`'s `profile:` line, so MCP servers you add and their sign-ins stay with their company. A new profile starts empty: its first launch shows Claude Code's onboarding, and your settings, skills and MCP servers are set up once per company. Every profile reads your own `~/.claude/CLAUDE.md`.

### In CI, a token still wins

An [API token](#ci) in `SELAN_TOKEN` beats every stored session and every folder pin, so a job spends as the token's company wherever it runs.

Every command and file is listed in the [reference](https://selan.ai/docs/reference#accounts).

## How do I run Claude Code through Selan?

```bash
selan claude
```

Every argument passes straight through, so anything you already type still works:

```bash
selan claude -p "explain this repo"
selan claude --resume
selan claude --permission-mode plan
```

Codex is the same shape under its own name, and passes its arguments through the same way. It has a page of its own: [Codex](https://selan.ai/docs/codex).

```bash
selan codex
```

You do not need to `login` first. Either command signs you in when you have no session.

**If Selan's own sign-in service is unreachable**, `selan claude` warns and launches anyway on your cached session. Only a genuine rejection makes you sign in again.

Claude Desktop

## How do I use Claude Desktop through Selan?

Claude Desktop runs on your company's account too, and setting it up is one settings file: download it, import it in Desktop, relaunch, sign in. The full walkthrough (seven steps, with a picture of every menu and button) is at [Claude Desktop](https://selan.ai/docs/claude-desktop). In Selan control, the **Install** item in the sidebar opens a dialog with **Selan CLI**, **Claude Desktop** and **Codex**: the CLI shows its install steps in place, the other two open their guides on selan.ai in a new tab.

### What you get, and what you still do yourself

-   **Connectors appear on their own.** Whatever an owner has switched on under [Connections](#admins) reaches Desktop the next time you start it. There is nothing to paste per connector.
-   **You sign in to each one yourself** the first time you use it. See [Connections](#admins).
-   **Your sign-in is your credential.** Desktop holds a session token from the browser sign-in, the same kind the CLI uses, so it spends against your own limit, shows up as you in Usage, and ends when your session does.
-   **Nothing in the file is a secret.** It names a URL and asks Desktop to sign in before reading it; the gateway and the key arrive from that URL at every launch. A file you _export_ from Desktop is a different matter: that one carries a live key, so never pass one around.
-   **Needs Claude Desktop 1.25927 or newer.** The floor is set by `Trust bootstrap-delivered settings`; the OIDC block itself arrived earlier, in 1.10628, but the flow stops at the strip without the toggle.

Codex

## How do I use Codex through Selan?

Codex runs on your company's accounts too, and the change is one word: `selan codex` instead of `codex`. Every argument passes through, and Codex itself is a prerequisite — Selan launches it, it does not bundle it. The full page is at [Codex](https://selan.ai/docs/codex).

### What is the same, and what is not

-   **The same session and the same limits.** One sign-in serves every client. Your Codex requests spend against the same budget, appear as you in Usage, and reach Logs with the model that served them.
-   **Your config gets one managed block.** `selan codex` writes `[model_providers.selan]` into `~/.codex/config.toml`, between markers, and says so once. The rest of the file is left alone. See [your config file](https://selan.ai/docs/codex#config).
-   **The picker needs Codex 0.156 or later.** Older versions show your company's models under `/model` only while signed in to ChatGPT; otherwise you name a model instead. See [models in the picker](https://selan.ai/docs/codex#picker).
-   **Any connected model can reach it.** Codex speaks one protocol, and Selan translates for providers that speak the other one, Google Vertex's Claude models among them. See [which models can appear](https://selan.ai/docs/codex#eligible).
-   **No statusline and no context limit.** Both are Claude Code's. [What differs](https://selan.ai/docs/codex#differs) lists the three.

OpenCode

## How do I use OpenCode through Selan?

OpenCode runs on your company's accounts too: `selan opencode` instead of `opencode`. Every argument passes through, and OpenCode 2 is a prerequisite. The full page is at [OpenCode](https://selan.ai/docs/opencode).

-   **The same session and the same rules.** Every request goes through Selan, so your company's models, spend limits and secret scanning apply, and the usage is counted to you.
-   **Your company's models, connectors and skills.** Every model in the catalog, from whichever providers your company connected, is in OpenCode's `/models`. See [which models](https://selan.ai/docs/opencode#models).
-   **Nothing is written to OpenCode's config.** Each launch hands OpenCode its configuration in the environment, so a bare `opencode` keeps whatever it had. See [your config file](https://selan.ai/docs/opencode#config).

Cursor

## How do I use Cursor's agent through Selan?

`selan cursor` starts Cursor's agent in the terminal on your company's models, with no Cursor account. Nothing needs installing first: Selan downloads Cursor's local agent build into `~/.selan/cursor/versions` on the first launch (about 150 MB), asks Cursor for the newest version on every launch, and starts the one it has when Cursor cannot be reached. The agent talks to your company's gateway and not to Cursor's servers.

```bash
selan cursor                            # the TUI; /model picks a model, Tab its effort
selan cursor -p "fix the failing test"  # one prompt, headless
selan cursor --model gpt-6.1-sol        # Cursor's own flag, passed through
```

-   **Every argument is Cursor's.** They pass through as typed, and `selan cursor --help` is the agent's own help.
-   **Your company's models.** The model list is the one Claude Code's picker shows, each model under its own name, such as `gpt-6.1-sol` or `claude-opus-5-5`. Cursor offers an effort choice only for models it knows by name; for the rest Selan asks for the model's default effort. Until you pick a model, Selan names the catalog's first.
-   **Its own settings.** The agent's settings and chats live in `~/.selan/cursor/config` rather than `~/.cursor`, so a Cursor you use with your own account is left alone. The agent still keeps per-folder logs and transcripts under `~/.cursor/projects`.
-   **Your company's connectors.** They are written into `~/.cursor/mcp.json` as `selan-_name_`. Your own servers there are left as they are, and a server of yours with the same name wins. No entry holds a token: one that uses your Selan session reads it from the launch's environment, so the Cursor editor, which reads the same file, shows those entries failing to connect. One that asks you to sign in: `selan cursor mcp login selan-_name_`. Connectors with their own OAuth client or fixed scopes are not written yet.

Grok Build

## How do I use Grok Build through Selan?

`selan grok` starts xAI's Grok Build on your company's models, with no xAI account: it lists and calls only your company's gateway. Install Grok Build first with `curl -fsSL https://x.ai/cli/install.sh | bash`.

```bash
selan grok                                # the TUI
selan grok -p "fix the tests"             # one prompt
selan grok -m claude-sonnet-5-5           # pick a model
```

-   **Every argument is Grok's.** They pass through as typed, and `selan grok --help` is Grok's own help.
-   **Its own settings.** Grok keeps its settings, sign-in and sessions in `~/.selan/grok` rather than `~/.grok`, so a bare `grok` keeps your own. Grok's web search and its image and video tools are xAI's alone and are turned off, as are its usage reports to xAI.
-   **Your company's connectors.** They are written into `~/.selan/grok/config.toml` beside Grok's own settings. One that uses your session reads it from the launch's environment; one that asks you to sign in does so in Grok.
-   **Your Claude Code skills and MCP servers.** Grok reads them from `~/.claude` itself.

JetBrains IDEs

## Can I use Claude Code from a JetBrains IDE through Selan?

Yes. Quit your IDEs and run `selan install jetbrains`. It installs Anthropic's Claude Code plugin in IntelliJ IDEA, GoLand, WebStorm, PyCharm, Android Studio and the others, and sets the plugin to start `selan claude`, so a session from the IDE runs on your company's accounts like one from a terminal. See [JetBrains IDEs](https://selan.ai/docs/jetbrains).

Other agent apps

## Can I run other agent apps through Selan?

Yes. `selan app hermes chat` and `selan app paperclip` run Hermes Agent and Paperclip on your company's models and connectors, from a public catalog of bash scripts you read first. See [Apps](https://selan.ai/docs/apps), or go straight to [Hermes](https://selan.ai/docs/hermes) or [Paperclip](https://selan.ai/docs/paperclip).

Everyday use

## Which model does Claude Code run on?

By default Claude Code runs on your company's Anthropic accounts, and you pick models exactly as usual, with `/model` or `--model opus`.

Anything else is reachable two ways: your company can put models into [the picker](#picker) for everyone, or you can [name one on the command line](#any-model).

## Which models are in Claude Code's /model picker?

Type `/model` in Claude Code and the list is your company's: every model an owner has switched on and put in Claude Code's picker, Claude models first, and nothing else. Pick one the way you pick Opus, with no flag to pass.

Select model

Switch between models. Your pick becomes the default for new sessions.

<table class="table"><tbody><tr><td class="cur">&gt;</td><td class="num">1.</td><td class="nm">Claude Opus 5 <span class="ok">✓</span></td><td class="term-s">1M context, on your company's own provider key through Selan</td></tr><tr><td></td><td class="num">2.</td><td class="nm">Claude Sonnet 5</td><td class="term-s">1M context, on your company's own provider key through Selan</td></tr><tr><td></td><td class="num">3.</td><td class="nm">MoonshotAI: Kimi K3</td><td class="term-s">1M context, on your company's own provider key through Selan</td></tr><tr><td></td><td class="num">4.</td><td class="nm">OpenAI: GPT-5.6 Sol</td><td class="term-s">400k context, on your company's own provider key through Selan</td></tr></tbody></table>

↑/↓ to move · enter to select

Every row came from Selan and runs on your company's own provider key. Claude Code's built-in rows are gone, so nothing in the list leases a model nobody switched on.

Your pick becomes the default for new sessions, and you can change it mid-session as often as you like. Each model starts at its own default effort; a level you pick in `/model` is yours and outlasts every later launch. Your company may cap the effort a model maker's models run at: a request asking for more runs at the cap, without an error, and the picker hides Extra high and Max when they are above it.

**A model picked here compacts against 1M, not against its own window.** Any model with a window over 200k gets Claude Code's 1M ceiling, so a 256k or 400k model is no longer held to 200k. Claude Code compacts once per launch against one figure, though: your company's context limit if an owner set one, otherwise 1M. A pick in `/model` does not change that figure, so a long session on a 256k model can outgrow what its provider accepts. When a mid-size window matters, name the model with [`--model`](#any-model) instead. That path compacts at the model's exact window.

### If a model you expected is not there

-   **Quit and relaunch first.** The list is read at startup, so a model switched on while you were working shows up the next time you start Claude Code, not when you reopen `/model`.
-   **Then ask an owner to switch it on.** A model has to be switched on in [Settings → Models](https://control.selan.ai/settings/models) and be in the Claude Code picker in [Settings → Model pickers](https://control.selan.ai/settings/pickers). A Claude model goes into the picker when it is first switched on; an owner adds any other model there by hand. Only a Claude or ChatGPT subscription brings models that start switched on. Connecting a provider key does not put anything in anyone's picker by itself.
-   **A model that disappears was switched off.** If you had it selected, you will get `model_not_allowed`. Pick another and relaunch.

Want a model your company has not curated? Any model your provider serves can be named directly. See [Run any model](#any-model).

## Can Claude Code run GPT, DeepSeek or Kimi?

Claude Code drives GPT, DeepSeek, Kimi and the rest. If your company has connected its own OpenRouter, Ollama, ChatGPT or Kimi Code account, name a provider and one of that provider's models. [Providers and models](https://selan.ai/docs/providers) is the full list:

```bash
selan claude --model openrouter:openai/gpt-6.1-sol
selan claude --model openrouter:deepseek/deepseek-v4.1-flash-1017
selan claude --model openrouter:moonshotai/kimi-k3
```

The part before the first colon is the provider; everything after it is that provider's own model id, passed through as-is, so any model they serve works without anything being added to Selan first. The exception is a model Selan lists: an owner switches it on at that provider before it can be pinned there. Capitals, dashes, dots and spaces do not change which model you get, so `openrouter:openai/GPT-6.1-Sol` and `openrouter:openai/gpt-6.1-sol` are the same model.

The model appears in Claude Code's `/model` picker for the session, so you can switch back to it after changing models mid-session. A `--model` with no colon is Claude Code's own flag and is passed through untouched.

**You get the model's real context window.** Selan tells Claude Code how big it actually is, so a 262k model compacts at 262k and not at an assumed 200k.

### Which one to reach for

-   **Use the picker when you can.** If a model is already in [`/model`](#picker), pick it there: it survives a restart and you can switch mid-session.
-   **Use `--model` for a one-off**, for a model nobody has curated, or whenever the exact context window matters. It pins the whole session, so start a new one to change your mind.

## The statusline

Selan adds a line to the bottom of Claude Code with your company's 5-hour and 7-day rate-limit headroom and your own spend against your own budget. What each meter means, how to turn it off, and `selan usage` for the same numbers are in [the statusline docs](https://selan.ai/docs/statusline).

## Can I dictate a prompt in Claude Code?

Yes. **Dictation** is on by default for a company that pays through credits, and an owner can turn it off (see [What an owner sets](#admins)). In `selan claude`, hold the space bar: after a moment Selan starts listening, and the words you speak are typed into the prompt as you say them. Let go to stop. The statusline shows that it is listening. Press Esc or Ctrl-C while you hold to delete what that hold typed. It needs `selan` 1.33 or newer and a microphone, on macOS or Linux; on Windows, `selan claude` starts without it for now.

-   Each person picks the language they speak under Settings, _Preferred language for voice_: English, Lithuanian, German, Polish or Spanish.
-   Dictation is paid from your company's credits, at €0.31 an hour of speech. A company without credits is not offered it, and a hold with none left says so in the statusline.
-   On Linux, install `pipewire-utils` or `alsa-utils` so there is something to record with. Without a recorder, `selan claude` says so and starts without dictation.
-   It is offered only in an interactive terminal, and not to a company that runs its own proxy. Set `SELAN_NO_VOICE` to start Claude Code without it.

## What happens when I reach a spend limit?

Two kinds of limit can stop you. **A key's limit** caps everything spent through one of your company's keys, by anyone. **Your own limit** is set once and applies across _every_ key in the company. It follows you, and does not start again on each key.

Both run on calendar periods in UTC (a day, a week or a month) and both bind the moment they are reached, not once they are passed. The refusal names which limit it was and when it resumes; if two are over at once, you are told the later of the two. Nothing you retry clears it sooner.

Spend is attributed to you personally, so one person running hot does not consume someone else's allowance. Your own budget is the bar on [the statusline](https://selan.ai/docs/statusline#budget). Watch it, and do not wait for the refusal.

Your own limit stops only what is billed per token: your company's subscription seats keep serving you after you reach it.

An owner can also give a member a **daily token limit**, set beside the dollar limits under Spend limits as _Tokens a day_ (`500K`, `2M` or a whole number). It counts tokens, so subscription seats count too, and applies while token rotation is on. From 80% of it, only an account you connected yourself under Tokens serves you, and it may carry you past 100%. With none connected, or none available, requests are refused from 80% on, not only at 100%, with a `402` that says how much you have used. The limit resets at 00:00 UTC.

A spend limit is Selan's. The 5-hour and weekly windows of a Claude plan are Anthropic's, and [Claude Code rate limits](https://selan.ai/guides/claude-code-rate-limits) explains when each resets.

![The monthly limits table in Selan: a $150 limit for everyone, four members with what each has spent this month, and one marked over after passing a $60 limit](https://selan.ai/img/shots/limits-table.png)

Monthly limits in Selan. One member has passed a lower limit of their own and is marked over.

Going further

## How do I run Claude Code without permission prompts?

Normally Claude Code stops and asks before it edits a file or runs a command, so it cannot finish a job while you are away from the terminal.

`seland` is the same binary under a second name, installed beside `selan`. Running it is `selan claude --dangerously-skip-permissions`. Claude Code works to the end without asking you anything.

**`seland claude …` and `seland …` are the same launch.** `claude` and `codex` are the two command words, and `run` is read here as it is under `selan`, so `seland run` is a [declared launch](https://selan.ai/docs/reference#declared) without the prompts. With none of them, it launches Claude Code. A prompt cannot begin with one of those words, which is the price of their being commands. Typed out of habit the word is dropped, not passed on as your prompt. The examples below spell it out to match the rest of this page; leave it off if you prefer.

### Hand it one job

The most common use. Give it a task, walk away, read the diff when it is done:

```bash
cd ~/work/api
seland claude -p "the auth middleware tests are failing. Find out why and fix it."
```

Everything after `seland` other than those three words is Claude Code's, so anything you already pass still works: `-p` for a one-shot task, `--resume` to pick a session back up, `--output-format` to get JSON back out.

### Or a whole session

```bash
seland
```

A normal interactive session with the prompts turned off. It first prints the directory it is about to work in and waits for one enter (the only confirmation you get, and the only one you need, because the flag then holds for the rest of the session in that directory).

### Overnight, or in CI

Add an [API token](#ci) and nothing interactive is left: no browser, no prompts, no enter to press. In GitHub Actions:

```yaml
- run: curl -fsSL https://claude.ai/install.sh | bash
- run: curl -fsSL https://dl.selan.ai/install.sh | sh
- run: seland claude -p "update every dependency with a patch release, run the tests, open a PR"
  env:
    SELAN_TOKEN: ${{ secrets.SELAN_TOKEN }}
```

**Piped or in CI, the enter is skipped and it starts immediately.** There is nobody to ask, and blocking on input nothing will ever write would hang the job without protecting anything. An unattended `seland` therefore runs with no confirmations, whatever access the job has, and whatever the runner checked out.

### Plan it first

Plan mode is the opposite setting: Claude Code reads the code, works out an approach and tells you, changing nothing:

```bash
selan claude --permission-mode plan
```

Agree the plan there, then hand the work over to `seland` to carry out, so you review the approach before anything is written, not the diff afterwards.

Use `selan` for this one, not `seland`. `seland` always skips permissions, which is the opposite of what this flag asks for.

### Where to run it

With the prompts off, nothing stops a bad edit as it happens, so what limits the damage is how much the session can reach:

-   **Commit or stash first.** A clean tree means `git diff` is the complete record of what it did, and `git checkout .` is the whole undo.
-   **Start it in the directory you mean.** It works from where the terminal was sitting, and it will not ask again.
-   **Give a long job its own worktree** with `git worktree add ../job my-branch`, so it cannot touch what you are editing.
-   **In CI, scope the token** the way you would any other: a runner with no production credentials cannot reach production, whatever it is asked to do.

`claude`, `codex` and `run` are the only subcommands under the second name; every other argument belongs to the agent. `seland whoami`, `seland login` and the rest are refused, and point you at `selan`.

## How do I run Claude Code in CI, containers or cron?

`selan login` needs a browser, which an unattended job does not have. For those, an owner mints an API token under [Settings → API tokens](https://control.selan.ai/settings/access), and the job carries it in the environment:

```bash
export SELAN_TOKEN=selanct_...
selan claude -p "review this diff"
```

With it set there is no sign-in, no browser, and nothing written to disk, so it is safe to hand to a container without baking a credential into the image.

An API token **spends as itself**, under an address of its own like `ci-nightly@tokens.selan.ai`. Use one in place of a person's login for exactly this reason: the nightly job's bill shows up as the nightly job in Usage and in Logs, instead of on whoever set it up. Give each job its own token and name it after the job.

Check which one a shell is using with `selan whoami`. It prints only the last four characters, so it is safe to leave in a CI log.

**A token beats a stored login, unconditionally.** If `SELAN_TOKEN` is set in your own shell, your own `selan claude` spends as the token, not as you, so a job started on a laptop bills the job and not the laptop's owner. A stray export is easy to miss, and `selan whoami` is the only place it surfaces.

## How does selan stay up to date?

```bash
selan update
```

Updates in place, next to the binary you are actually running. An install in a directory your user cannot write, such as an older `/usr/local/bin` one, asks for `sudo` here.

You rarely need to run it. `selan claude` checks once a day, and when there is a newer release it **installs it before handing over the terminal**.

`selan claude` never asks for a password. When the install directory is one your user cannot write, it prints that a newer release exists, says it did not update, and starts Claude Code; run `selan update` yourself then.

If an update fails, you get a warning and Claude Code starts anyway. On a build machine where you want the version pinned, set `SELAN_NO_AUTO_UPDATE` (whatever value you give it) and update deliberately instead.

For admins

## What does an owner set?

Everything below happens in the Selan control app at [control.selan.ai](https://control.selan.ai), not on the command line. [How it works](https://selan.ai/how-it-works) walks through the screens.

| Setting | What it does |
| --- | --- |
| Accounts and provider keys | Add the Anthropic accounts Selan leases from, and connect your own OpenRouter, Ollama, Google Vertex, ChatGPT or Kimi Code account. The full list is in [Providers and models](https://selan.ai/docs/providers). Credentials are verified with the provider when added, encrypted before they are stored, and never rendered back, not even to whoever added them. |
| Settings → Models | One switch per model at each provider your company has connected. On lets developers use it; off makes it unreachable, even named with `--model`. **Off by default** for every provider but a Claude or ChatGPT subscription: connecting a key alone changes nobody's picker. A subscription's own current models start on, and an owner can switch them off. Above the switches, **Effort limits** lists each model maker with a model switched on; its **Max effort** (No limit, Low, Medium, High or Extra high) caps the reasoning effort that maker's models run at, through every provider that serves them. A request asking for more runs at the highest level the model takes at or under the cap; one asking for less, or naming no effort, is left alone. The model pickers offer no level above the cap where the client allows, and Logs show the effort each request ran at. |
| Settings → Model pickers | One tab per client (Claude Code, Claude Desktop and Codex), listing the models that are on in Models. A model in a tab's list is in that client's model menu. A model switched on for the first time joins its own family's list: Claude models in Claude Code and Claude Desktop, GPT models in Codex. Add any other model by hand. An empty Codex list leaves Codex on its own built-in models. |
| Connections | One switch per connector: Jira & Confluence, Sentry, Linear, Notion, GitHub and the rest of the catalog Selan curates, all listed in [MCP connections](https://selan.ai/docs/mcp-connections). On offers it to every developer alongside the model; off takes it away. **Off by default.** In Claude Desktop a connector your company switched on is on from its next start. In Claude Code, a connector that needs the developer's own sign-in stays off until that developer turns it on in their _Connections_; one that needs no sign-in is on at once. Each developer signs in to a connector _as themselves_ the first time they use it, so their own permissions apply and Selan never holds their account. For the same reason, the page shows you what is offered and never who has signed in. A few connectors cannot register a client automatically and need an OAuth client you create; the page says which, and asks for it there. _Browser Extension_ also needs [the extension](https://selan.ai/docs/browser-extension) installed in each developer's Chrome. |
| Settings → Dictation | Lets developers hold space in `selan claude` to speak into the prompt, paid from your credits at €0.31 an hour of speech. **On by default** for a company on credits; a company without credits is not offered it. Each person picks their own language. See [Dictation](#dictation). |
| Settings → API tokens | Mint a token for CI. Owner-only, capped at 50 live, expiring in 1, 30, 90 or 365 days, or never. Shown once. Revoked from the same panel. The tokens Reactor mints for its remote-agent runs do not count toward the 50. |
| Spend limits | Per key, and per person on a key, for a day, a week or a month. |
| Secret scanning | Off by default. With it on, every request body is swept with gitleaks' rules and each match is replaced before a byte goes upstream. It redacts and forwards, never blocking over a secret; it refuses a request in two cases: when the scanner cannot be reached, so nothing goes upstream unscanned, and when the body is over 24 MiB, more than it will hold to sweep. Developers see nothing; owners get a Secrets feed in Logs. See [Hiding secrets](https://selan.ai/docs/secrets). |
| Repository attribution | Lets usage be attributed to the repo it ran in, which is what Insights reads. Supported clients may supply a host-qualified repository slug consistently; Selan records it only after an owner turns this on. Off by default. |

**Passing your own `--settings` opts out of the settings half.** Your flag wins, and Selan does not merge into it, so that launch gets no statusline and none of your company's settings. It does not opt you out of the connectors: your company's MCP servers are still passed in, and still added to and removed from `~/.claude.json` as the company switches them on and off. To own that half too, pass `--mcp-config` as well. With both, the CLI says so on launch.

## Related

-   [Claude Code glossary for teams](https://selan.ai/glossary): seat, provider key, usage and rate limits, spend limit, prompt cache and the rest, one short answer each.
-   [How Claude Code and Codex run without API keys on laptops](https://selan.ai/guides/claude-code-without-api-keys): why a sign-in replaces the provider keys a team would otherwise hand out.
-   [How to see Claude Code usage per developer](https://selan.ai/guides/claude-code-usage-per-developer): what an owner sees per person and per team, across Claude Code, Codex and Claude Desktop.
-   [Claude Code spend limit reached](https://selan.ai/guides/claude-code-spend-limit-reached): whose limit each message names, on usage credits, API keys and Selan, and what lifts it.
-   [Skip permissions in Claude Code safely](https://selan.ai/guides/claude-code-skip-permissions): what `--dangerously-skip-permissions` turns off, where to run it, and the safer modes.
-   [AI coding policy template](https://selan.ai/guides/ai-coding-policy-template): ten clauses for Claude Code and Codex, each matched to the setting that enforces it.
-   [Reference](https://selan.ai/docs/reference): every command, including `selan usage`, every environment variable and every error message.
-   [Spend per developer](https://selan.ai/solutions/spend): what an owner sees of each person's spend, and how a limit per person is set.
