Skip to main content

Codex Agent

A local, persistent and extensible AI agent built around the Codex backend.

Codex Agent turns a ChatGPT/Codex account into an agent that can live on your machine: keep long-running sessions, use local tools, schedule work, expose multiple interfaces, and evolve through Python plugins.

It is primarily designed for Linux developers and AI enthusiasts who want more than a coding task runner: a general-purpose local assistant whose harness remains open, inspectable and adaptable.

Codex Agent is an independent open-source project. It is not a fork of the official Codex application and is not affiliated with OpenAI.

What you get

  • A persistent local agent backed by Codex and authenticated through ChatGPT.
  • Long-lived sessions with context compaction and selective memory.
  • A terminal UI, an adaptive desktop dock and a system tray connected to the same agent.
  • Local file, shell, Python, browser, scheduler and other capabilities through plugins.
  • A Python SDK for direct, embedded or process-isolated integrations.
  • A local REST/SSE server for custom clients and user interfaces.
  • A plugin model that can contribute tools, context, commands, hooks and events.

Codex Agent deliberately favors power and adaptability over consumer-grade sandboxing. It is intended for technically confident users who understand that enabled plugins can act on their machine.

The desktop experience adapts to the task: a minimal always-on-top composer for working directly on the desktop, a focused chat column, or a Files/Editor/Chat workspace. The persistent tray can also show temporary Markdown notifications and compact tool activity while the dock is collapsed—or even closed—so scheduled and background work remains observable without taking over the screen.

Why not just use Codex?

Official Codex is the simpler choice for a polished, supported coding-agent experience. Its CLI works on Linux, but the official desktop app currently targets macOS and Windows.

Codex Agent is for developers who want to own and evolve the harness itself:

  • a fully open-source, Linux-first workspace, with a persistent service, TUI, tray and native desktop dock;
  • a Python-first Agent SDK exposing the engine itself—not just a client—with runtimes and AgentClient available for other integration levels;
  • a familiar, conversation-oriented API built around uniform Message history and typed dictionary payloads;
  • extension points throughout the agentic loop, including tools, context, commands, hooks, events and stream processing;
  • a live workflow where the agent can modify, test and reload its own runtime, interfaces and plugins without discontinuing the ongoing session.

Use official Codex when its product experience already fits your workflow. Use Codex Agent when building and evolving your own local agent platform is part of the goal.

Independent, not adversarial. Codex Agent is not affiliated with OpenAI and does not seek to replace or bypass Codex. It is an independent interpretation of a harness compatible with the Codex backend, using the normal authentication flow and usage quota of a paid ChatGPT account. Its authentication support follows the protocol documented by OpenAI's open-source Codex client; it does not circumvent access controls. The project exists to explore different—sometimes subtle, but consequential—design choices around the same service.

Quick start

Requirements

  • Linux is the primary supported desktop platform.
  • Python 3.11 or newer.
  • A ChatGPT account with Codex access and enough usage quota for sustained agent work.
  • Git and common build tools.
  • Node.js, pnpm, Rust and Tauri system dependencies are needed only when building the desktop dock from source.

Install

pip install codex-agent-framework
codex-agent bootstrap

bootstrap installs the background services and, when desktop sources and dependencies are available, builds and installs the dock.

Then open the default terminal interface:

codex-agent

Or submit one headless task:

codex-agent run "Summarize this repository"

The first Codex request may open the ChatGPT authentication flow.

Choose your path

Use Codex Agent

I want to… Read
Install, bootstrap or repair the application Installation
Start a session and understand the daily workflow Getting started
Run tasks or administer the local agent from a terminal CLI reference

Integrate or extend it

I want to… Read
Embed an agent directly in Python Python SDK
Choose in-process, isolated or server execution Runtimes
Build an HTTP/SSE client Server API and events
Add tools, context or other capabilities Plugins
Build an interactive client Interfaces and UI integration

The complete documentation map is available in docs/README.md.

Core model

Codex Agent separates four concerns:

Agent       owns sessions, context, tools and the agentic loop
Runtime     exposes that Agent in-process or through an isolated worker
Server      maps one long-lived Runtime to REST and SSE
Interfaces  consume the same server state and event stream

Plugins are the canonical extension surface. A plugin may add model-callable tools, context providers, slash commands, hooks, stream processors, event handlers and system-prompt sections.

The server normally binds to 127.0.0.1. Treat runtime plugins and any interface connected to the server as trusted local code unless you add your own security boundary.

Project status

Codex Agent is already usable as a daily personal harness, but remains intentionally evolving. Public entry points are kept small and predictable; implementation details may continue to change as the project becomes clearer and more capable.

Contributions, experiments and personal forks are welcome—especially from developers interested in designing the environment around an AI agent rather than consuming a fixed assistant.

License

See LICENSE.

Download files

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

Source Distribution

codex_agent_framework-0.2.7.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

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

codex_agent_framework-0.2.7-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

Details for the file codex_agent_framework-0.2.7.tar.gz.

File metadata

  • Download URL: codex_agent_framework-0.2.7.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for codex_agent_framework-0.2.7.tar.gz
Algorithm Hash digest
SHA256 7f5e894e44e91adcbfc8919fcfbf97d303eb341f6cc8763660119fc74e1c9b4d
MD5 c44c55fe46a7b40e867b8bb854d8a84c
BLAKE2b-256 bee5d382bbd741ad44515f908a61abb30c9f6d6d7a8efafd85c891240d52e241

See more details on using hashes here.

File details

Details for the file codex_agent_framework-0.2.7-py3-none-any.whl.

File metadata

File hashes

Hashes for codex_agent_framework-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 649d186a7cff548bbbfc0fd65492c293cd43803bd0e46e37080cc744f605099c
MD5 f514b13f33b5245bfcdab09263767836
BLAKE2b-256 3e02787efddf19e2f15047a38a7dcd35676025cb923e61a278dce96053f4e1bd

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.22

2 files

0.2.21

2 files

0.2.20

2 files

0.2.19

2 files

0.2.18

2 files

0.2.17

2 files

0.2.16

2 files

0.2.15

2 files

0.2.14

2 files

0.2.13

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

This release

0.2.7 This release

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.99

2 files

0.1.98

2 files

0.1.97

2 files

0.1.96

2 files

0.1.95

2 files

0.1.94

2 files

0.1.93

2 files

0.1.92

2 files

0.1.91

2 files

0.1.90

2 files

0.1.89

2 files

0.1.88

2 files

0.1.87

2 files

0.1.86

1 file

0.1.84

1 file

0.1.83

2 files

0.1.82

2 files

0.1.81

2 files

0.1.80

2 files

0.1.79

2 files

0.1.78

2 files

0.1.77

2 files

0.1.76

2 files

0.1.75

2 files

0.1.74

2 files

0.1.73

2 files

0.1.72

2 files

0.1.71

2 files

0.1.70

2 files

0.1.69

2 files

0.1.68

2 files

0.1.67

2 files

0.1.66

2 files

0.1.65

2 files

0.1.64

2 files

0.1.63

2 files

0.1.62

2 files

0.1.61

2 files

0.1.60

2 files

0.1.59

2 files

0.1.58

2 files

0.1.57

2 files

0.1.56

2 files

0.1.55

2 files

0.1.54

2 files

0.1.53

2 files

0.1.52

2 files

0.1.51

2 files

0.1.50

2 files

0.1.49

2 files

0.1.48

2 files

0.1.47

2 files

0.1.46

2 files

0.1.45

2 files

0.1.44

2 files

0.1.43

2 files

0.1.42

2 files

0.1.41

2 files

0.1.40

2 files

0.1.39

2 files

0.1.38

2 files

0.1.37

2 files

0.1.36

2 files

0.1.35

2 files

0.1.34

2 files

0.1.33

2 files

0.1.32

2 files

0.1.31

2 files

0.1.30

2 files

0.1.29

2 files

0.1.28

2 files

0.1.27

2 files

0.1.26

2 files

0.1.25

2 files

0.1.24

2 files

0.1.23

2 files

0.1.22

2 files

0.1.21

2 files

0.1.20

2 files

0.1.19

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

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