Agents & integrations
Agents
How to connect Claude Code and Codex to Horus, manage several accounts and pick the model and effort in each conversation.
Horus ships no models of its own and no API keys. It works with the agents you already have on your Mac, each one with your own login:
| Agent | CLI | Login behind the scenes |
|---|---|---|
| Claude Code | claude | claude setup-token |
| Codex | codex | codex login |
Limits and usage are those of your account with each provider.
Requirements#
- The agent's CLI installed on the Mac:
claudefor Claude Code,codexfor Codex. One of the two is enough. - An account with that provider.
Horus looks for the CLIs on the system PATH and, if they are not there, asks your login shell. Installs made with nvm, fnm, volta or asdf work without any setup. If you install a CLI while Horus is open, it is found on the next attempt.
If the CLI is missing, the conversation tells you when you send a message and explains how to install it, for example:
npm i -g @openai/codex@latestWhere accounts are managed#
Everything lives in Definições › Contas de IA (Settings › AI accounts), in the Agentes (Agents) group. The page has three cards:
- Geral (General): the Fornecedor para novas conversas (provider for new conversations), Claude or Codex. Project rules take priority, and existing conversations keep their own choices.
- Claude and Codex: each provider's Modelo predefinido (default model), Conta predefinida (default account) and Esforço predefinido (default effort), with one card per account underneath.
Each account card shows the login state and lets you enable or disable the account (a disabled account disappears from the pickers) or remove it. Expanded, it shows the Nome da conta (account name), the Permissões da conta (account permissions) and the Modelos (models) list.
Claude Code#
The shell session#
If you already signed in to claude in the terminal, Horus uses that session through the Sessão do shell (shell session) account. There is nothing to set up. To confirm it is active, open the Sessão Claude do sistema (system Claude session) block in the Claude card and press Verificar sessão Claude do sistema (check system Claude session). The check sends no messages to the model; macOS may ask for Keychain access.
Add a Claude account#
- In Definições › Contas de IA (Settings › AI accounts), on the Claude card, press Adicionar conta Claude (add Claude account).
- Name the account (for example, «Work») and press Adicionar (Add).
- The login dialog opens. Horus runs
claude setup-tokenbehind the scenes and your browser opens the authorisation page. - Authorise in the browser. If you are already signed in to another Claude account, use a private window.
- The dialog shows Credenciais guardadas. (Credentials saved.) and the account joins the list.
If the browser does not move on, Já autorizei, mas não avançou (I authorised, but it did not continue) lets you paste the code or the return address. You can also choose Colar token manualmente (paste token manually) and paste a token you generated yourself with claude setup-token.
Codex#
The Codex CLI session#
The Codex account uses the regular Codex CLI session. If you have not signed in yet, log in from the terminal:
codex loginAdd a Codex account#
- In Definições › Contas de IA (Settings › AI accounts), on the Codex card, press Adicionar conta Codex (add Codex account).
- Name the account and press Guardar conta (save account). Horus creates a private folder for this account, without reusing existing logins.
- The login dialog shows a code. Press Abrir link (open link), sign in to the right account (ideally in a private window) and enter the code.
- The dialog shows Conta autenticada. (Account authenticated.)
Each extra Codex account has its own login, but inherits the rules, skills and configuration of the main account.
Choose the model#
Model, account and effort are picked in the chip next to the send button, which shows «Model · Effort». Opening it shows the Configuração da conversa (conversation settings) panel, with the Modelo (model), Conta (account), Esforço (effort) and Permissões (permissions) rows.
- Modelo (model): pick the provider (Claude or Codex) and search the list. Favourites come first.
- Conta (account): the provider account used in this conversation.
- Esforço (effort): the reasoning level. Automático (automatic) is the default and Horus adjusts it to the request. The other levels are Desligado (off), Baixo (low), Médio (medium), Alto (high) and Muito alto (very high); Máximo (maximum) is only available with Claude.
New conversations use Claude Opus 5.5 by default, unless you change the provider's or the project's default model.
Switch mid-conversation#
You can switch model, account and even provider in the middle of a conversation. When you switch account, the agent starts a new session and receives the recent history as context.
Favourites, order and hidden models#
In Definições › Contas de IA (Settings › AI accounts), expand an account and open Modelos (models). There you star favourites, change the order and hide the models you do not use. These choices apply to every account of the same provider.
Under Avançado (Advanced) you can add a model by its identifier. Horus does not detect new models on its own.
Project defaults#
In Definições do projeto › Conversas (Project settings › Conversations), the Predefinições (defaults) card sets the Modelo (model) and Thinking for that project's new conversations. Existing conversations do not change.
Limits and overload#
- The chip in the sidebar footer shows the plan usage of the active conversation's account. Clicking it opens Uso do plano (Plan usage): one card per account (the rest under Outras contas, Other accounts), with the Limite de 5 horas (5-hour limit) and the weekly limits as percentages, the reset time (for example Reinicia amanhã às 07:23, resets tomorrow at 07:23) and Atualizar (Refresh). The bar turns amber from 70% and red from 90%. The detail for every account is in the footer ⋯ menu › Utilização e limites (usage and limits), Limites (Limits) tab.
- If an account hits its limit, the conversation shows Limite atingido (limit reached) with the account's name. The notice says whether it is a Limite de sessão (session limit), Limite semanal (weekly limit) or Limite de utilização (usage limit) and, when the provider's message gives it, the time the account becomes available again. The original message is under Mensagem do fornecedor (provider's message).
- To carry on right away, the notice shows Continuar com (Continue with) followed by the name of each other account from the same provider, if there are one or two. With more, you pick one in Continuar noutra conta… (Continue in another account). The conversation moves to that account with the same history, without repeating the previous request: you send a message to carry on. If that Claude account is not signed in yet, Horus asks you to sign in first. With no other account, the notice shows Ligar outra conta (connect another account); with others, Gerir contas (manage accounts).
- With Claude, when the API is overloaded, Horus retries and, if needed, answers that turn with a lighter model. The conversation's model does not change.
- If an account's login expires, the conversation shows Volta a ligar a tua conta (reconnect your account). The conversation stays saved.
Differences between Claude and Codex#
| Feature | Claude Code | Codex |
|---|---|---|
| Conversations, browser, fork | Yes | Yes |
| Plane, Slack, Coolify, FTP | Yes | Yes |
| SSH servers | Yes | No |
| HorusAI (lead and tasks) | Yes | No |
| Skills and plugins | Yes | Only Codex's own skills |
| MAX effort | Yes | No |
With Codex, the conversation's permission level also sets the sandbox: in Auto-aceitar edits (auto-accept edits) the agent only writes inside the project folder, with no network; in Supervisionado (supervised) it starts read-only and asks for anything else; in Acesso total (full access) there is no sandbox and no prompts.
Next steps#
- MCP servers: give the agents extra tools.
- Settings and permissions: decide when the agent asks for approval.
- HorusAI: hand an objective to a team lead.