Codex CLI
Connect AppAmbit to OpenAI Codex CLI to integrate the SDK, fix crashes, and manage your backend from the terminal.
Before you start
You need a personal access token. See Get a token.
Connect
- Open
~/.codex/config.toml. -
Add this, and replace
<your-token>with your token:~/.codex/config.toml[mcp_servers.appambit] type = "http" url = "https://appambit.com/mcp/appambit" [mcp_servers.appambit.http_headers] Authorization = "Bearer <your-token>" -
Start a new Codex session.
Check that it works
Ask Codex:
List my AppAmbit apps.
Disconnect
Delete the [mcp_servers.appambit] sections from ~/.codex/config.toml. You can also delete the token on the AI Assistant page of the dashboard.
Troubleshooting
| Problem | Solution |
|---|---|
| Codex doesn't see AppAmbit | Check the TOML syntax, then start a new session. Changes don't apply to a session that's already open. |
| Unauthorized error | The token is wrong or was deleted. Create a new one and update config.toml. |
| My app doesn't show up | The token belongs to a different workspace. Create a token from the workspace that has the app. |
| Cloud Code says it's not enabled | Your plan doesn't include Cloud Code. Ask "What does my AppAmbit plan include?" |
Still stuck? Ask us on Discord.