Skip to main content

No project description provided

Project description

acodex

License: MIT

Local MCP automation for the Codex desktop app.

acodex gives scripts, tools, and agents a local bridge into a running Codex desktop session. It can relaunch Codex with a Chrome DevTools Protocol (CDP) port, run a managed HTTP/MCP server, and call the live codex_app.* tools that your Codex desktop build exposes.

Quick Start | CLI | Support | Contributing

Why acodex

  • Live Codex desktop access. Inspect and call the tools exposed by the running desktop renderer without writing CDP plumbing.
  • MCP-compatible local server. Expose Codex desktop tools at /mcp for local automation clients.
  • Practical CLI workflow. Check configuration, relaunch Codex with CDP, manage the bridge server, and call tools from a terminal.

Quick Start

Prerequisites:

  • Python 3.10 or newer.
  • uv; see the official install guide.
  • macOS with Codex.app installed. The relaunch flow expects /Applications/Codex.app by default; set ACODEX_CODEX_APP_PATH if yours is elsewhere.

Install the CLI:

uv tool install acodex

Initialize config, launch Codex with CDP, and start the local bridge:

acodex config init
acodex codex relaunch --yes
acodex server start

acodex codex relaunch --yes starts or restarts Codex so acodex can reach the default CDP endpoint, http://127.0.0.1:45217.

For deeper diagnostics after the server is running, use acodex doctor --deep.

List and call Codex desktop tools:

acodex tools list
acodex tools call codex_app.list_threads --limit 1

Stop the managed bridge when you are done:

acodex server stop

CLI

Common commands:

acodex config path
acodex config show
acodex doctor --deep
acodex codex status
acodex codex relaunch --yes
acodex server start
acodex server status
acodex server logs --tail 50
acodex tools list --json
acodex tools call codex_app.list_threads --help

Tool calls use the MCP schema property names. Pass simple top-level arguments as flags, or use JSON for nested input:

acodex tools call codex_app.list_threads --limit=5
acodex tools call --args-json '{"limit":5}' codex_app.list_threads
acodex tools call --output json codex_app.list_threads --limit 5

Configuration

acodex reads JSON config from ~/.acodex/config.json by default. Set ACODEX_CONFIG to use a different file. Use acodex config path and acodex config show to inspect the active path and effective values.

Essential local endpoints:

  • Codex CDP: http://127.0.0.1:45217
  • Managed server health: http://127.0.0.1:45218/healthz
  • MCP endpoint: http://127.0.0.1:45218/mcp

Configuration precedence and the full defaults matrix live in CONTRIBUTING.md.

State-changing tool calls mutate the live Codex desktop app. Use acodex tools call <tool> --help before calling unfamiliar tools.

Support

When setup fails, start with the built-in diagnostics and managed server logs:

acodex doctor
acodex server logs --tail 50

If the issue continues, open a GitHub issue with what you tried, what happened, your OS and Python version, your acodex source branch or commit, your Codex desktop/CDP setup, and relevant command output with secrets removed.

Contributing

Contributor setup, architecture notes, quality gates, and documentation rules live in CONTRIBUTING.md. Agent-specific guidance lives in AGENTS.md.

License

acodex is released under the MIT License.

acodex is independently maintained and is not affiliated with, sponsored by, or endorsed by OpenAI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acodex-1.0.0.tar.gz (228.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acodex-1.0.0-py3-none-any.whl (70.1 kB view details)

Uploaded Python 3

File details

Details for the file acodex-1.0.0.tar.gz.

File metadata

  • Download URL: acodex-1.0.0.tar.gz
  • Upload date:
  • Size: 228.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for acodex-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9b289a8bcef3880b10fcdb61501494c1d3488402a7708098cf56142694ca72b1
MD5 c3c761fe9fa6732256408de9b60a9927
BLAKE2b-256 2617ef7a9efcf28d4c90de51c4d368d40e50d805ca171f2c4b8bfffbccbe0bb6

See more details on using hashes here.

File details

Details for the file acodex-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: acodex-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 70.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for acodex-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30ab6826cd164dc206785e6bbab750543dcd811cc7f1de796bbcb28b6f8d7dbd
MD5 ffeada35a4faade5ad5cf34cd0fc9edf
BLAKE2b-256 f87d7399fe41eac354a425a2e7d982e27f9990da2024591c6c59c1e8afc968c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page