Documentation Index
Fetch the complete documentation index at: https://doc.onetoken.one/llms.txt
Use this file to discover all available pages before exploring further.
Use Codex through the Onetoken API
Install
Official download (macOS)
https://openai.com/codex/
CLI
npm install -g @openai/codex
Environment / config
Config files
- Edit
~/.codex/config.toml:
profile = "OneToken"
[model_providers.OneToken]
name = "OneToken"
base_url = "https://onetoken.one/v1"
personality = "pragmatic"
wire_api = "responses"
[profiles.OneToken]
model = "gpt-5.2"
model_provider = "OneToken"
model_reasoning_effort = "high"
- Edit
~/.codex/auth.json:
{
"OPENAI_API_KEY": "Onetoken_API_KEY"
}
CC-Switch
- Open CC-Switch → add a provider.
- Pick OneToken from presets.
- Paste your API key → Add.
- Select OneToken on the home screen → Enable.
Using Codex
Terminal
cd to your project, run codex.
cd /path/to/your/project
codex
- Set permissions as prompted.
- Choose a model.
- Type a natural-language task—if you get a reply, setup works.
Desktop app
- Open Codex, pick a workspace folder.
- Enter a task—if it responds, you’re good.
CLI reference
Help
Options (excerpt)
Usage
$ codex [options] <prompt>
Options
-h, --help Show help and exit
-m, --model <model> Model to use (default: codex-mini-latest)
-i, --image <path> Path to an image input file
-v, --view <rollout> Inspect a saved rollout
-q, --quiet Non-interactive: print only final assistant output
-a, --approval-mode <mode> Override approval: 'suggest', 'auto-edit', or 'full-auto'
--auto-edit Auto-approve file edits; still confirm shell commands
--full-auto Auto-approve edits and commands in the sandbox
--no-project-doc Do not auto-include repo `codex.md`
--project-doc <file> Include a specific Markdown file as context
--full-stdout Do not truncate command stdout/stderr
Dangerous
--dangerously-auto-approve-everything
Skip all confirmations and run commands (no sandbox)
For temporary local testing only
Experimental
-f, --full-context “Full context” mode: load the whole repo and batch-edit
Requires --model
Examples
$ codex "Write and run a Python program that prints ASCII art"
$ codex -q "Fix the build"