# Try Codex CLI in a browser sandbox

OpenAI's coding agent in your terminal

Source: https://www.agentclash.dev/try/codex
Markdown export: https://www.agentclash.dev/md/try/codex
Session limit: 10 minutes

A page visit does not create a sandbox. Starting a disposable session requires an explicit action on the HTML page.

## Suggested commands

- **Show version**: `codex --version`
- **Sign in (device code)**: `codex login --device-auth`
- **Start Codex**: `codex`

## Authentication

Sign in with your ChatGPT account via device code, or use an OpenAI API key. Everything stays in this disposable sandbox.

1. Run: codex login --device-auth
2. Open the URL on your own machine and enter the one-time code
3. Prefer a key? Run: codex login --with-api-key (then paste your key)
4. Then start it: codex

## Links

- [Documentation](https://developers.openai.com/codex/cli)
- [Source repository](https://github.com/openai/codex)