You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-site/src/content/docs/getting-started/installation.md
+22-15Lines changed: 22 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,9 @@ title: Installation
3
3
description: Install the opencodex (ocx) proxy, its prerequisites, and verify it runs.
4
4
---
5
5
6
-
opencodex ships as a single CLI, `ocx`. It runs as a small local HTTP server (built on Bun) and never
7
-
sends your traffic anywhere except the provider you configure.
6
+
opencodex installs two equivalent command names, `ocx` and `opencodex`. Both launch the same small
7
+
local HTTP server (built on Bun). Model requests go to the provider selected by routing; optional
8
+
vision and web-search sidecars can also use your ChatGPT login when a routed model needs them.
8
9
9
10
## Prerequisites
10
11
@@ -20,25 +21,25 @@ sends your traffic anywhere except the provider you configure.
20
21
npm install -g @bitkyc08/opencodex
21
22
```
22
23
23
-
Verify the binary is on your `PATH`:
24
+
Verify both command aliases are on your `PATH`:
24
25
25
26
```bash
26
-
ocx --help
27
+
ocx --version
28
+
opencodex --version
27
29
```
28
30
29
-
### Preview channel
31
+
### Release channels
30
32
31
-
GPT-5.6 Sol/Terra/Luna support is preview-gated until the rollout graduates. Install the preview tag
32
-
for a fresh setup, or keep an existing preview install on the preview channel:
33
+
The stable `latest` channel already includes GPT-5.6 Sol/Terra/Luna catalog support for ChatGPT,
34
+
OpenAI API-key, OpenRouter, and experimental Cursor routes. Upstream access is still account-gated;
35
+
the catalog entries do not grant access by themselves. Use the preview channel only to test
36
+
unreleased opencodex builds:
33
37
34
38
```bash
35
39
npm install -g @bitkyc08/opencodex@preview
36
40
ocx update --tag preview
37
41
```
38
42
39
-
Preview builds seed the GPT-5.6 model ids and Codex catalog metadata; they do not grant upstream
40
-
model access by themselves.
41
-
42
43
## Run from source
43
44
44
45
To hack on opencodex itself:
@@ -58,13 +59,19 @@ has produced `gui/dist`. While hacking on the dashboard, run the frontend separa
58
59
59
60
## What gets created
60
61
62
+
opencodex state lives under `$OPENCODEX_HOME` (default `~/.opencodex`). Codex integration files live
63
+
under `$CODEX_HOME` (default `~/.codex`).
64
+
61
65
| Path | Purpose |
62
66
| --- | --- |
63
-
|`~/.opencodex/config.json`| Your providers, default provider, port, and options. |
64
-
|`~/.opencodex/ocx.pid`| PID of the running proxy (single-instance guard). |
65
-
|`~/.opencodex/auth.json`| Stored OAuth credentials (when you `ocx login`). |
66
-
|`~/.opencodex/catalog-backup.json`| Pristine Codex model catalog, backed up before any edit. |
67
-
|`$CODEX_HOME/config.toml`| opencodex appends a `[model_providers.opencodex]` table here on `ocx init` (defaults to `~/.codex/config.toml`). |
67
+
|`$OPENCODEX_HOME/config.json`| Your providers, default provider, port, and options. |
68
+
|`$OPENCODEX_HOME/ocx.pid`| PID of the running proxy (single-instance guard). |
69
+
|`$OPENCODEX_HOME/runtime-port.json`| The live PID, hostname, and port, including an automatically selected fallback port. |
70
+
|`$OPENCODEX_HOME/auth.json`| Stored OAuth credentials (when you `ocx login`). |
71
+
|`$OPENCODEX_HOME/catalog-backup*.json`| Codex model catalog backups made before opencodex edits it. |
72
+
|`$CODEX_HOME/config.toml`| On loopback, opencodex adds a marker-owned root `openai_base_url`; non-loopback binds use `model_provider = "opencodex"` plus `[model_providers.opencodex]` so Codex can send the API-auth header. |
73
+
|`$CODEX_HOME/opencodex.config.toml`| Fallback/reference profile written alongside the main Codex config. |
74
+
|`$CODEX_HOME/opencodex-catalog.json`| Synced native and routed model catalog used by Codex. |
68
75
69
76
:::note
70
77
opencodex never deletes your Codex config. Every injection is reversible — `ocx stop`, `ocx restore`,
0 commit comments