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.
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
- βSign in to Perfect Wiki
- βChoose knowledge bases & access level
- βAllow access
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
How to connect Perfect Wiki to OpenAI Codex.
- 1In the Codex CLI, type
/pluginsand search for PerfectWiki. In the Codex app, open Plugins, or go straight to the plugin page. - 2Install it. Codex opens a browser window: sign in to Perfect Wiki, choose the knowledge bases and the access level, then click Allow access.
- 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. - 4If the session expires, run
codex mcp login perfect-wikito sign in again.
More details in the Perfect Wiki MCP server guide and OpenAI Codex's MCP documentation.
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.
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.
- 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.
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.
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.
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.
Ask a question in plain language and get an AI answer from your SOPs and FAQs, with the source pages.
See which knowledge bases the connection covers and the access level for each.
List every page in a knowledge base.
Read the full content of a specific page.
Create a new page β draft SOPs straight from chat.
Update an existing page, so SOPs never go stale.
Remove pages that are no longer needed.
Get the name and access level of one knowledge base.
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 β- Commercial CleaningDeep Cleaning SOP Template
- Commercial CleaningFloor Cleaning and Mopping SOP Template
- Commercial CleaningJanitorial Closet and Equipment Care SOP Template
- Commercial CleaningMove-Out Cleaning SOP Template
- Commercial CleaningOffice Cleaning SOP Template
- Commercial CleaningRestroom Cleaning SOP Template
Frequently asked questions
Yes. ChatGPT and Codex share one plugin directory, and PerfectWiki is the same plugin in both. Install it from /plugins in the Codex CLI or from Plugins in the Codex app.
No. Plugins and MCP servers live in your Codex configuration, which the CLI, the IDE extension and the Codex app share, so you install and sign in once.
Yes. Export your old wiki (Confluence, Notion, Guru, Slab and others export HTML or Markdown), open Codex in that folder and ask it to import everything into a Perfect Wiki knowledge base. It keeps the page tree and asks before writing. It works the same for a folder of Markdown, Word or PDF documents.
Run codex mcp login perfect-wiki. Codex reopens the browser sign-in so you can authorize the knowledge base again.
Yes. Add bearer_token_env_var = "PERFECT_WIKI_TOKEN" to the [mcp_servers.perfect-wiki] entry and export the variable, or pass --bearer-token-env-var PERFECT_WIKI_TOKEN to codex mcp add. This suits CI jobs and sandboxes where a browser sign-in isnβt possible.
Uploaded files are a snapshot: they go stale the moment a policy changes, and they stay in one chat or project. Through the MCP server, OpenAI Codex reads the current version of your SOPs and FAQs from Perfect Wiki every time, links to the source page, and only reaches the knowledge bases you connect.
Only if you allow it. When you sign in with OAuth you choose Read only or Read & write on the consent screen, and writes only work in knowledge bases where you can edit. Legacy API tokens always have full access to their one knowledge base. Most MCP clients also ask for your confirmation before running a tool that writes.
Yes, with a single connection. When you sign in, choose all knowledge bases you can access (including ones you get access to later) or only the ones you select. OpenAI Codex can search across all of them at once and has to name the target knowledge base for every change. API tokens cover one knowledge base each, so add one server entry per token.
The Perfect Wiki MCP server only forwards the requests OpenAI Codex makes. Tool results β the pages and answers it fetches β are passed to the model as part of the conversation and handled under your AI provider's data policy.
The MCP server is included in every Perfect Wiki plan, and the same API rate limits apply. You can try it with the 14-day free trial β no credit card required.
Didn't find what you're looking for? Contact our support β
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.