Amble / documentation
Get Amble

Codex

Set up Codex on the computer running Amble.

On this page

How Amble runs Codex

Amble runs Codex through the official codex CLI and its app-server interface. It uses your local installation and OpenAI sign-in.

Amble adds no charge for Codex. Sign in with ChatGPT to use the access in your plan, or use an OpenAI Platform API key to bill through that account. Your provider’s own plan limits and pricing apply. Agent accounts and usage are separate from Amble.

Connect it

What you’ll need
  • The Codex CLI installed on the computer running Amble.
  • A ChatGPT plan with Codex, or an OpenAI API key.
  1. Install the CLI

    The ChatGPT desktop app and the Codex CLI are separate installs. Installing the app does not add the codex command.

    npm install -g @openai/codex
  2. Sign in

    Sign in with ChatGPT for subscription access:

    codex login

    To bill through an API key instead, run printenv OPENAI_API_KEY | codex login --with-api-key on macOS or Linux. In Windows PowerShell, run $env:OPENAI_API_KEY | codex login --with-api-key.

  3. Open the agent list

    Go to SettingsAI & agents. The Connections tab lists each agent and whether it is ready.

  4. Start an agent

    Open a project and choose Codex in the chat box. Check the provider and model before you send.

It worked when

Codex shows as available under SettingsAI & agents and you can pick it in the chat box.

Use it in a terminal

codex also works in an Amble terminal. Open a terminal in your workspace and run codex for the standard CLI experience, from the desktop, web or phone client.

If it doesn’t appear

If codex isn’t found, Amble can’t start the agent. Check that the command runs in a terminal on the computer running Amble, then select Refresh on the provider’s page. If Amble was already open when you installed the CLI, restart it first.

To check, run which -a codex on macOS or Linux, or where.exe codex on Windows.

See also

Connect a coding agent covers the agent list and sign-in. Multiple AI accounts and fallback covers more than one account. Configuration and credentials says where each setting lives.