Settings: Developer tools
Last reviewed November 15, 2026 (checked against the app).
These settings are on the Tools pages of Settings: MCP servers, Hooks, Skills & toolboxes, Automation, Command-line tools and Editor & database, plus Backups under General, on desktop and web. All settings lists every page.
How do I configure Codex?
Open Settings -> Command-line tools. On desktop the controls are split across the Codex Defaults, Authentication, and CLI Status cards. On web they are in the OpenAI Codex and Codex Login cards.
| Setting | What it controls |
|---|---|
| Default Model | Model used for new Codex sessions |
| Default Sandbox (web: Sandbox Mode) | File access level for new Codex sessions |
| Codex Auth Mode (web: Auth Mode) | ChatGPT plan or API key. On ChatGPT plan, runs never fall back to the API key |
| ChatGPT Login (web: OpenAI Account) | Codex CLI account status and sign-in |
| OpenAI API key | Whether an OpenAI key is set; used only when Codex Auth Mode is API key. Desktop only. |
| When Codex reaches its usage limit, move the run to the agent's next engine | Off by default. On: an agent's run or a chat with an agent that stops at Codex's usage limit starts again on the next engine in that agent's fallback chain (the agent's Advanced tab), as it already does when Claude reaches its session limit. If that next engine runs on an API key, the run is billed per use. Off: the run stops with Codex's message. It only matters for agents that have a fallback chain. Only you can turn it on or off. |
| Codex CLI (CLI Status card) | Whether the Codex CLI is installed, with an install action. Desktop only. |
Codex sign-in is desktop-only. Web Codex sessions inherit the server-side credentials. In Auto mode, every non-Chat Codex surface prefers the ChatGPT login and strips API-key variables before launch; the Settings OpenAI key is injected only when no ChatGPT login exists. The main Chat surface uses the OpenAI API unless Settings -> Chat -> Chat transport -> OpenAI chats via Codex is on (see How do I run chats through Claude Code or Codex?).
How do I choose Google AI authentication?
The Google Gemini API key and Antigravity authentication control serve different routes:
| Setting | Applies to | Modes |
|---|---|---|
| Google Gemini | Gemini models in the Chat composer | API key |
| Antigravity Auth (Agents / Terminal / Chat) | Gemini runs routed through the Antigravity CLI (agy) |
Auto, OAuth only, or API key only |
Run agy in a desktop terminal and complete Google sign-in, then close agy. Return to Settings -> Providers & keys, then click Recheck beside Antigravity Auth. Auto mode uses the signed-in Google plan when available. OAuth-only mode shows a warning and Antigravity runs fail until sign-in is detected. API-key-only mode requires ANTIGRAVITY_API_KEY; the Google Gemini key field above remains limited to Chat models.
The web Settings page can change the Antigravity auth mode, but it cannot perform or recheck a local CLI login. Complete Antigravity sign-in from the desktop app.
How does Extended Thinking interact with max tokens?
When Extended Thinking uses a manual thinking budget, CPLai keeps the request's max output tokens high enough for Anthropic's requirement that max_tokens be greater than the thinking budget. You can set the thinking budget in Settings -> Chat -> Extended Thinking without separately tuning every caller, including Terminal summaries.
How do I back up the CPLai database?
Open Settings -> Backups -> Time Capsule in the desktop app or web dashboard. Both surfaces show backup status and support manual backup and restore-rehearsal actions. CPL Cloud offsite controls currently appear in the web card.
Time Capsule is the scheduled backup and disaster-recovery system for the CPLai brain (the PostgreSQL database that holds companies, agents, tickets, memory, and settings):
- Daily backups run automatically in the always-on service; the card shows the last backup, its size, and staleness. Run backup now takes a backup on demand.
- Retention keeps the most recent backups (14 by default) and prunes older ones.
- Restore rehearsals run every seventh backup by default: CPLai restores the newest backup into a throwaway scratch database and verifies it actually loads, so you find out a backup is bad long before you need it. Rehearse restore runs one on demand and never replaces the live database.
- Optional offsite copies: set the
time_capsule_s3_urisettings row to ans3://bucket/prefixdestination to push each backup offsite with the AWS CLI (there is no on-screen field for it; the card shows whether S3 offsite is on), or enable CPL Cloud below.
What is CPL Cloud backup?
CPL Cloud is the zero-config encrypted offsite tier inside the Time Capsule card: set a passphrase, enable it, and each backup is encrypted locally with that passphrase and pushed through the CPLai relay. Restores pull the capsule back and decrypt with the same passphrase - which is never stored or transmitted, so keep it somewhere safe; without it a cloud capsule cannot be opened.
How do I manage MCP servers, toolboxes, and skills?
Open Settings -> MCP servers for MCP servers, and Settings -> Skills & toolboxes for toolbox directories and desktop skill-directory sources. Open the dedicated Skills page for the skill library, versions, evals, runs, and proposals.
| Card | Use it for |
|---|---|
| MCP Servers | Register MCP servers, install Connector Directory entries, manage OAuth grants, control which agents may use each server, import configs, view logs, and manage connections |
| Toolboxes | Add and remove toolbox directories that supply tools to agent sessions |
| Skills (desktop) | Add or remove local skill-directory sources and refresh the imported library |
Connector Directory
How do I install a connector?
Desktop and web both provide a Connectors tab inside Settings -> MCP servers. The directory contains 47 curated, exact-version-pinned entries. Search by name or description, or filter by category. Official and community entries are labeled separately.
For a connector that uses an API key or no authentication:
- Open Connectors.
- Choose a connector and click Install.
- CPLai opens the Servers tab with the name, transport, pinned command or URL, arguments, and variable names prefilled.
- Add the required credentials or
${VAR}references. - Click Add.
- Choose its agent access after saving.
The directory fills the normal MCP server editor. It does not grant agent access by itself. An installed connector shows an installed badge in the directory. The catalog covers common search, repository, database, memory, monitoring, collaboration, media, productivity, and payment connectors.
How do I connect an OAuth connector?
OAuth entries show Connect instead of Install. They use a CPLai-managed Microsoft 365 or Google grant.
- Open Connectors and scroll to OAuth Grants.
- For Microsoft 365, enter the display name, Entra tenant ID, client ID, and client secret, then click Validate & Save.
- For Google, enter the display name, client ID, client secret, and scopes, then click Connect Google Account. Complete consent in the system browser.
- Confirm the grant shows active.
- Return to the connector and click Connect again.
- Review the prefilled server and click Add.
The grants section can also revoke a saved grant. CPLai seals broker credentials at rest. Agents receive short-lived access tokens at spawn rather than the stored client secret. A grant that can no longer refresh is labeled reconnect needed.
Which agents can use an MCP server?
How do I choose the access scope?
An enabled registry server reaches an agent through any one of three grants:
| Grant | Where to manage it | Result |
|---|---|---|
| All agents | Use the desktop Bot control, or the web server editor's Expose to agents toggle | Every agent receives the server at spawn |
| Company | Expand the server and select company chips under Agent access | Every agent in a linked company receives it |
| Individual agent | Desktop agent Edit -> Integrations -> MCP Servers, or web Agent Detail -> Keychain | Only the selected agent receives it |
The server's normal enabled control must also be on. A server can remain available to Chat without being granted to autonomous agents. All-agent and company grants appear selected and read-only on the agent screen and must be changed from Settings.
Access changes apply on the next agent run. CPLai opens sealed MCP environment and header values only while preparing that run, writes the merged configuration to a run-scoped temporary file, and removes it when the run finishes. The access model applies to desktop, web-triggered headless, PTY, and containerized agent launches.
Codex agents, including local models running inside Codex, receive the same servers. That holds whether the run starts on the service or in a desktop terminal, which covers a desktop launch with autonomy off and desktop agent chat. Codex has no configuration-file flag, so CPLai passes each server's command or URL on the Codex command line and its environment and header values only in the run's environment, never on the command line. A few servers cannot be passed this way and are left out of a Codex run, with the reason in the service log (or the desktop log, for a desktop terminal run):
- SSE servers (Codex supports stdio and HTTP servers only).
- A server whose command, arguments, or URL contains
&,|,<,>,^,%,!, or a single or double quote (for example a path under a user folder namedO'Brien). - A server whose environment would change a variable the run already has.
- A server with the same name as one in the agent's own Codex configuration. The agent's own definition is used instead.
A stdio server run by Codex sees only its own environment values, the agent's CPLai identity, and Codex's short default environment. It does not inherit the agent's other variables. To give it a Keychain value, add that value to the server's own environment.
Both the desktop app and the web dashboard support MCP server management and skills administration through the dedicated Skills page. Toolbox directory controls are available on both surfaces; local skill-directory source controls remain desktop-only because they use the machine's filesystem picker.
Toolbox directories
Toolbox directories are filesystem paths containing tool scripts that agents can use during sessions. To manage them:
- Open Settings -> Skills & toolboxes -> Toolboxes.
- Type a directory path and click Add to register a new toolbox directory.
- The card shows each registered directory with its script count.
- Click the remove button next to a directory to unregister it.
The total script count across all directories is shown at the top. Adding or removing a directory takes effect on the next agent session launch.
MCP transports
CPLai supports three MCP transport types:
| Transport | Use when |
|---|---|
| stdio | Server runs as a local process (most common - npx-based servers) |
| SSE | Server exposes an HTTP endpoint with Server-Sent Events |
| Streamable HTTP | Server uses the newer MCP Streamable HTTP protocol (e.g. fal.ai's hosted MCP server) |
When adding an HTTP-transport server, provide the URL and any required headers instead of a command and args.
Environment variable interpolation
MCP server configurations support ${VAR} syntax in commands, args, env values, and headers. Variables are resolved in this order:
- CPLai Settings (Settings -> Providers & keys -> API Keys) - checked first
- ~/.env file - checked as fallback
For example, ${FAL_KEY} in a header resolves to the FAL API key stored in your CPLai Settings, or falls back to FAL_KEY in your ~/.env file.
How does CPLai protect MCP credentials?
CPLai encrypts every value saved directly in an MCP server's environment map or HTTP headers at rest with the same AES-256-GCM secret store used by Keychain. Variable and header names stay readable. Authenticated owner and admin edit views decrypt the values so existing configurations remain editable, so treat those screens as sensitive and prefer ${VAR} references when possible.
The Settings -> Keychain -> Credential health -> Encrypt existing action also upgrades legacy plaintext MCP environment and header values. If the machine's sealing key is unavailable, CPLai leaves the original value intact and reports the failed upgrade instead of discarding the configuration.
How do I create and manage hooks?
Open Settings -> Hooks.
Hooks let you intercept and control tool calls, LLM calls, and session lifecycle events across Chat, Agents, Composer, and Terminal surfaces. Each hook is a JavaScript function stored in the database with an approval gate for safety.
Hook registry
The left panel shows all registered hooks with their name, event type, scope, active surfaces, and approval status. Click a hook to edit it, or click New to create one.
Creating a hook
- Open Settings -> Hooks.
- Click New.
- Fill in the hook fields:
| Field | What it controls |
|---|---|
| Name | Display name for the hook |
| Handler | The exported function name (default: handle) |
| Event | Which event triggers this hook (see event types below) |
| Scope | How broadly the hook applies: global, company, project, or agent |
| Tool Matcher | Optional regex to match specific tool names (e.g. ^run_command$) |
| Surfaces | Which surfaces the hook runs on: chat, agent, composer, terminal |
| Content | The JavaScript handler function body |
- Click Save.
- New hooks start in Pending approval status. Click Approve to activate.
Event types
| Event | When it fires |
|---|---|
pre_tool_call |
Before a tool executes - can allow, block, or modify arguments |
post_tool_call |
After a tool completes - can modify the result |
transform_tool_result |
Transforms tool output before it reaches the model |
pre_llm_call |
Before a model request is sent |
post_llm_call |
After a model response is received |
on_session_start |
When a chat or agent session begins |
on_session_end |
When a session ends |
terminal_output |
When terminal output is produced |
Hook actions
A pre_tool_call hook can return:
{ action: "allow" }- let the tool proceed{ action: "block", message: "reason" }- stop the tool with an explanation{ action: "modify_args", args: {...} }- change the tool's input before execution
A post_tool_call hook can return:
{ action: "allow" }- keep the result as-is{ action: "modify_result", result: "..." }- replace the tool output
Approval gate
Hooks require explicit approval before they run. This prevents accidental or malicious hooks from intercepting tool calls. When a hook's content changes, its approval status resets to Pending and must be re-approved.
Status indicators:
- Approved (green checkmark) - hook is active and running
- Pending (orange circle) - hook is saved but awaiting approval
- Disabled (gray) - hook is manually disabled
