# Connect Codex to ProductSteer

> Connect Codex to ProductSteer in one line: add the remote MCP server and sign in, or install the local server for guards and collectors on your machine.

Source: https://productsteer.com/docs/connect-codex

### Docs menu

Docs

Search the docs

Getting started

- [Overview](https://productsteer.com/docs)
- [Connect Claude Code](https://productsteer.com/docs/connect-claude-code)
- [Connect Codex](https://productsteer.com/docs/connect-codex)
- [Other agent tools](https://productsteer.com/docs/other-agent-tools)

How it decides

- [Evidence labels](https://productsteer.com/docs/evidence-labels)
- [Scores](https://productsteer.com/docs/scores)

Staying in control

- [Approvals and passkeys](https://productsteer.com/docs/approvals)
- [Guards](https://productsteer.com/docs/guards)

Trust

- [Security](https://productsteer.com/security)
- [Changelog](https://productsteer.com/changelog)
- [Plans and limits](https://productsteer.com/pricing)

[**Join the waitlist** One product free](https://productsteer.com/waitlist?source=docs-side)

[Docs](https://productsteer.com/docs) / Getting started

# Connect Codex to ProductSteer

There are two ways to connect. Start with the remote server if you want to try ProductSteer in a minute. Install the local server when you want the guards and your own numbers.

| Setup | Remote server | Local server |
| --- | --- | --- |
| Takes | One command | One command, and a look at the files it will write |
| Your agent gets | The plan, the record, the queue for your approval | The same, plus guards that check each action, and collectors for your own numbers |
| Level shown in a session | Guided | Full, once the guards have run |
| Works in a cloud session | Yes | Only where the tool runs repository hooks |

## The remote server

```
codex mcp add productsteer --url https://app.productsteer.com/mcp
```

Start Codex in your product's repository. The first time a ProductSteer tool is called, a browser page asks you to sign in and to confirm the connection. Then say:

```
Start a ProductSteer session for this repository.
```

The agent describes the product from the code, and ProductSteer answers with where the product stands and the first three tasks. Nothing is published, bought or deleted without your approval in the ProductSteer console.

## The local server

In your product's repository:

```
npx productsteer install --codex
```

It lists every file it would write and asks before writing any:

```
  1. .codex/config.toml (new file): adds the ProductSteer server to this repository's MCP servers for Codex
  2. .gitignore (new file): keeps ProductSteer's private working files out of git
  3. .productsteer/guard.mjs (new file): adds the guard: a script that checks each action before the agent tool runs it
  4. .productsteer/rules.md (new file): adds the rules as a plain file you own
  5. .codex/hooks.json (new file): tells Codex to run the guard before each tool call
```

Where a file already exists, the line says what happens to it: your own content in a shared file is kept, and the guard and the rules file are replaced whole.

**Codex asks you to review a repository's hooks once before it runs them.** Until you do, the guard does not run. ProductSteer shows the level as Guided and says why, and it becomes Full after your review.

Then sign in:

```
npx productsteer login
```

It prints a short code and an address. Open the address in a browser where you are signed in to ProductSteer, check that the page shows the same code, and confirm.

Check the result:

```
npx productsteer status
```

## What the guards stop

Guards reduce accidents. They are not a security boundary against an agent that is trying to get around them.

With the local server installed and its hooks reviewed, Codex runs ProductSteer's guard before each of its own tool calls. The guard stops:

1. A push to your live branch.
2. A delete of a folder.
3. Staging everything at once.
4. An edit outside the agent's own lane, when you have set lanes.
5. A public post that you have not approved in the console.

When you meant to do it, allow the one action yourself, in your own terminal. It is good for ten minutes:

```
npx productsteer allow push
npx productsteer allow delete path/to/folder
```

## If something is not right

| What you see | What to do |
| --- | --- |
| "This session has not started." | Ask the agent to start a ProductSteer session first |
| The level says Guided after installing | Review the repository's hooks when Codex asks, then start a new session |
| "failed its signature check" | Reinstall the package: `npx productsteer@latest install --codex` |
| "This version was recalled" | The same command. Tell nobody to run a destructive task until it is replaced |

## Remove it

```
npx productsteer uninstall
```

It reverses exactly what install did and keeps your own content in shared files.

[Previous Connect Claude Code](https://productsteer.com/docs/connect-claude-code) [Next Other agent tools](https://productsteer.com/docs/other-agent-tools)

On this page

- The remote server
- The local server
- What the guards stop
- If something is not right
- Remove it
