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
{{ message }}
Repository navigation
Commit 3abdc0e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: plugins/ory-codex/README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,11 @@ One command installs two independent halves:
12
12
## What you'll need
13
13
14
14
-[Codex](https://github.com/openai/codex), installed and signed in
15
+
<!-- BEGIN GENERATED requirements -->
15
16
- Node.js **22 or newer**
16
17
-[Docker](https://docs.docker.com/get-docker/) — only if you want to run Ory locally
17
18
- macOS or Linux (Windows works via WSL2)
19
+
<!-- END GENERATED requirements -->
18
20
19
21
## Get started
20
22
@@ -72,7 +74,7 @@ Out of the box, every tool Codex runs produces a privacy-safe structured activit
72
74
Once you connect to Ory Agent Security, two more things happen automatically:
73
75
74
76
-**Who's driving.** You sign in once in your browser; Codex (and any sub-agents it spawns) each get their own identity. No tokens to copy around, and the "who acted on whose behalf" trail stays queryable later.
75
-
-**What it's allowed to do.** Before a tool runs, Ory checks whether it's permitted. It starts in **observe mode** — nothing is blocked, you just *see* what would be — so it never gets in your way on day one.
77
+
-**What it's allowed to do.** Before a tool runs, Ory checks whether it's permitted. It starts in **observe mode** — nothing is blocked, you just *see* what would be — so it never gets in your way on day one. In observe mode, Codex still shows its own approval prompt for a tool Ory would deny.
76
78
77
79
If Ory is ever unreachable, the plugin gets out of the way and lets Codex keep working — so it can't lock you out.
78
80
@@ -101,6 +103,7 @@ Then a denied tool is actually blocked and Codex shows why.
101
103
102
104
## Connect to Ory Agent Security
103
105
106
+
<!-- BEGIN GENERATED connect -->
104
107
Copy the connection details from the [Ory Console](https://console.ory.sh) under **Agent Security**:
Sign-in runs at the start of every session and never blocks — a declined, skipped, or timed-out login simply leaves that session without a user identity.
125
128
129
+
When a login is declined, times out, or fails, Codex shows a warning that sign-in did not complete (and tells the model, so it can explain a later denial).
130
+
126
131
Settings are saved to `~/.config/ory-agent-plugins/config.json` and shared across all your Ory agent plugins; environment variables win when both are set. Running headless with an OAuth2 access token already? Set `ORY_USER_OAUTH2_TOKEN` and the browser step is skipped entirely.
132
+
<!-- END GENERATED connect -->
127
133
128
134
## Commands
129
135
@@ -143,15 +149,17 @@ The local stack runs a complete Ory on your laptop: the Ory APIs at `http://loca
143
149
144
150
## Troubleshooting
145
151
146
-
-**`local up` fails** — make sure Docker is running and ports `4000`, `4100`, `4455`, and `16686` are free.
152
+
-**`local up` fails** — <!-- BEGIN GENERATED local-stack-ports -->make sure Docker is running and ports `4000`, `4100`, and `4455` are free.<!-- END GENERATED local-stack-ports -->
147
153
-**Browser sign-in loops** (after connecting) — confirm the reserved login client has all four documented loopback redirect URIs; `agent unregister` only clears legacy agent OAuth state.
148
154
-**Running an older CLI than expected** — `npx -p @ory/codex` (no version pin) reuses a previously-downloaded copy instead of re-resolving to the latest. The install banner prints the running version; confirm it with `npx -y -p @ory/codex ory-codex version`. To force the current release, clear the cache and reinstall: `rm -rf ~/.npm/_npx` then `npx -y -p @ory/codex ory-codex install`. Pinning an exact version (`@ory/codex@<version>`) also bypasses the cached copy.
149
155
-**`npm install … ENOVERSIONS`** — if your `~/.npmrc` sets `min-release-age`, npm hides versions newer than that. Override per-call: `npm_config_min_release_age=0 npx -y -p @ory/codex ory-codex install`.
150
156
-**`codex doctor` says `ory-mcp-server is not resolvable`** — the bundled tool server is fetched on demand via `npx`, so make sure `npm`/`npx` is on your PATH. The first session downloads it; later ones reuse the cache.
0 commit comments