AI knowledge base for OpenAI Codex.

Install the PerfectWiki plugin in 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, writes back what it learned, and can move your whole old wiki over for you.

No credit cardSetup in under 10 minutesCancel anytime
01Codex plugin

Install the plugin in one step.

Type /plugins in the Codex CLI, or open Plugins in the Codex app, and install PerfectWiki. It's the same plugin as in ChatGPT. Sign in once in the browser, and the CLI, IDE extension and app can all use it.

  • β†’From the plugin directory Codex shares with ChatGPT
  • β†’Browser sign-in, no tokens to copy
  • β†’Prefer plain config? codex mcp add still works
Codex Β· Plugins
βŒ•perfectwiki
PerfectWiki
Search and edit your team wiki
Install plugin
  1. βœ“Sign in to Perfect Wiki
  2. βœ“Choose knowledge bases & access level
  3. βœ“Allow access
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 the Codex CLI, type /plugins and search for PerfectWiki. In the Codex app, open Plugins, or go straight to the plugin page.
  2. 2Install it. Codex opens a browser window: sign in to Perfect Wiki, choose the knowledge bases and the access level, then click Allow access.
  3. 3Prefer plain MCP config? Run codex mcp add perfect-wiki --url https://api.perfectwiki.xyz/mcp. The entry lands in ~/.codex/config.toml, which the CLI, IDE extension and app share.
  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.

Move your old wiki

Bring everything over in one message.

Switching from another knowledge base, or starting from a pile of documents? You don't need an importer. Once Perfect Wiki is installed in OpenAI Codex, ask it to move the content over β€” it reads the old pages, recreates them in your knowledge base and keeps the structure.

Works from
  • Confluence
  • Notion
  • SharePoint
  • Google Docs
  • Guru
  • Slab
  • Word & PDF files
  • Markdown

Install the plugin first. Then open Codex in a folder on your computer and say:

> Import our old wiki into Perfect Wiki. The Confluence export is in ~/Downloads/confluence-export. Put every page in my β€œEngineering” knowledge base, keep the page tree, and show me the plan before you start.

Codex reads the export, plans the page tree, creates each page in Perfect Wiki and asks before anything important. Swap in your export folder (from Confluence, Notion, Guru, Slab or any other wiki) and your knowledge base.

Codex works through big wikis page by page, so hundreds of pages are fine. Leave it running and check the knowledge base when it's done.

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 question in plain language and get an AI answer from your SOPs and FAQs, with the source pages.

list_knowledgebases()

See which knowledge bases the connection covers and the access level for each.

list_pages()

List every page in a 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 the name and access level of one knowledge base.

Free SOP templates

Start from a ready-made SOP. Keep it alive here.

Download any of our 294 standard operating procedure templates in Word, PDF, Excel or CSV, no sign-up needed. Then put it in Perfect Wiki so your team can find it and ask about it.

Browse all 294 SOP templates β†’
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