AI knowledge base for OpenAI Codex.

Hook Perfect Wiki into OpenAI Codex once and every surface gets it β€” the CLI, the IDE extension and the Codex app. Codex looks up your specs, decisions and runbooks before it touches the code, and writes back what it learned.

No credit cardSetup in under 10 minutesCancel anytime
01MCP setup

Connect OpenAI Codex in two minutes.

Run codex mcp add with the Perfect Wiki URL. Codex detects that the server uses OAuth and opens your browser to sign in β€” the entry lands in ~/.codex/config.toml, which the CLI, IDE extension and app all share.

  • β†’One command, browser sign-in handled automatically
  • β†’A single config.toml for the CLI, IDE extension and desktop app
  • β†’Token-based setup available for sandboxes and automation
Terminal Β· Codex CLI
$ codex mcp add perfect-wiki --url https://api.perfectwiki.xyz/mcp
Opening browser to sign in to perfect-wiki…
βœ“ perfect-wiki saved to ~/.codex/config.toml
02Read & write

Codex checks the spec first β€” then writes the code.

Point Codex at a task and it can pull the product spec, the architecture decision record or the migration guide from Perfect Wiki, build against it, and record the outcome in the wiki when the work is done.

  • β†’Implements features against the spec your PM actually wrote
  • β†’Respects past architecture decisions instead of re-litigating them
  • β†’Leaves release notes and decision logs behind in the wiki
Codex CLI
> Implement the CSV export from the β€œReports v2” spec in Perfect Wiki.
⏺ perfect-wiki Β· get_page("Reports v2 β€” product spec")
⏺ perfect-wiki · ask("ADR on background jobs")
⏺ perfect-wiki Β· create_page("Release notes β€” CSV export") βœ“
The spec caps exports at 50k rows and ADR-014 says long jobs go through the queue, so the export runs as a background job with an email link. Draft release notes are saved in the wiki for review.
Setup guide

How to connect Perfect Wiki to OpenAI Codex.

  1. 1In your terminal, run codex mcp add perfect-wiki --url https://api.perfectwiki.xyz/mcp
  2. 2Codex opens a browser window. Sign in to Perfect Wiki, choose the knowledge base and click Allow access.
  3. 3Prefer a UI? In the Codex app go to Settings β†’ MCP servers β†’ Add server; in the IDE extension use the gear menu β†’ MCP servers.
  4. 4If the session expires, run codex mcp login perfect-wiki to sign in again.

More details in the Perfect Wiki MCP server guide and OpenAI Codex's MCP documentation.

Prefer a static API token?
~/.codex/config.toml Β· API token
[mcp_servers.perfect-wiki]
url = "https://api.perfectwiki.xyz/mcp"
bearer_token_env_var = "PERFECT_WIKI_TOKEN"

Export PERFECT_WIKI_TOKEN with a token from your knowledge base settings β€” Codex reads it from the environment, so the secret never sits in config.toml. The CLI equivalent is codex mcp add perfect-wiki --url … --bearer-token-env-var PERFECT_WIKI_TOKEN.

Use cases

What your team does with Perfect Wiki in OpenAI Codex.

Build straight from the spec

Product specs and acceptance criteria live in Perfect Wiki. Codex reads them directly, so the implementation matches what was agreed β€” not a paraphrase in a ticket.

> Build the invite flow exactly as described in the Teams Invites spec.

Honor architecture decisions

Codex consults your ADRs before choosing a library, a queue or a data model, and flags when a request conflicts with a recorded decision.

> Is adding Redis here consistent with our caching ADR?

Write the release notes for you

When a change is ready, Codex summarizes it into release notes or a migration guide and creates the page in the right knowledge base.

> Draft release notes for this branch and save them to Perfect Wiki.
The full toolset
ask()

Ask a natural-language question and get an AI answer with sources.

list_pages()

List every page in the connected knowledge base.

get_page()

Read the full content of a specific page.

create_page()

Create a new page β€” draft SOPs straight from chat.

update_page()

Update an existing page, so SOPs never go stale.

delete_page()

Remove pages that are no longer needed.

get_knowledgebase()

Get info about the connected knowledge base.

Common questions

Frequently asked questions

Didn't find what you're looking for? Contact our support β†’

Ready when you are

Put your SOPs to work in OpenAI Codex.

Keep your SOPs, manuals and FAQs in Perfect Wiki β€” and give your whole team answers right where they work.

No credit cardSetup in under 10 minutesCancel anytime