{"title":"Codex","description":"Install the Altertable plugin from its Codex marketplace, connect the hosted MCP server, and verify access to your data catalogs.","order":200,"askSuggestions":["How do I install the Altertable plugin in Codex?","How do I check that Codex can reach my catalogs?"],"navigation":true,"body":{"code":"var Component=(()=>{var u=Object.create;var r=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),C=(t,e)=>{for(var i in e)r(t,i,{get:e[i],enumerable:!0})},s=(t,e,i,l)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of m(e))!x.call(t,o)&&o!==i&&r(t,o,{get:()=>e[o],enumerable:!(l=g(e,o))||l.enumerable});return t};var k=(t,e,i)=>(i=t!=null?u(f(t)):{},s(e||!t||!t.__esModule?r(i,\"default\",{value:t,enumerable:!0}):i,t)),w=t=>s(r({},\"__esModule\",{value:!0}),t);var d=b((I,c)=>{c.exports=_jsx_runtime});var y={};C(y,{default:()=>p,frontmatter:()=>v});var n=k(d()),v={title:\"Codex\",description:\"Install the Altertable plugin from its Codex marketplace, connect the hosted MCP server, and verify access to your data catalogs.\",order:200,askSuggestions:[\"How do I install the Altertable plugin in Codex?\",\"How do I check that Codex can reach my catalogs?\"]};function h(t){let e={a:\"a\",code:\"code\",h1:\"h1\",h2:\"h2\",h3:\"h3\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",strong:\"strong\",ul:\"ul\",...t.components},{DocsPreviewDocument:i,DocsPreviewSection:l,DocsPrompt:o}=e;return i||a(\"DocsPreviewDocument\",!0),l||a(\"DocsPreviewSection\",!0),o||a(\"DocsPrompt\",!0),(0,n.jsxs)(i,{anchors:\"set-up-codex quick-start verify tools choose-between-skills-mcp-and-the-cli update troubleshooting\",children:[(0,n.jsxs)(l,{sectionId:\"set-up-codex\",sectionTitle:\"Set up Codex\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,n.jsx)(e.h1,{id:\"set-up-codex\",children:\"Set up Codex\"}),`\n`,(0,n.jsx)(e.p,{children:\"The Altertable Codex plugin packages Altertable Skills and the hosted MCP configuration.\"}),`\n`]}),(0,n.jsxs)(l,{sectionId:\"quick-start\",sectionTitle:\"Quick start\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,n.jsx)(e.h2,{id:\"quick-start\",children:\"Quick start\"}),`\n`,(0,n.jsxs)(e.ol,{children:[`\n`,(0,n.jsxs)(e.li,{children:[`\n`,(0,n.jsxs)(e.p,{children:[`Open Codex from the root of the project where you want to use Altertable.\nIf `,(0,n.jsx)(e.strong,{children:\"Altertable\"}),` is available in your Plugins directory, install it there\nand skip steps 2 and 3.`]}),`\n`]}),`\n`,(0,n.jsxs)(e.li,{children:[`\n`,(0,n.jsx)(e.p,{children:\"Add the Altertable marketplace:\"}),`\n`,(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-bash\",children:`codex plugin marketplace add altertable-ai/skills\n`})}),`\n`]}),`\n`,(0,n.jsxs)(e.li,{children:[`\n`,(0,n.jsx)(e.p,{children:\"Install the plugin:\"}),`\n`,(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-bash\",children:`codex plugin add altertable@altertable-ai\n`})}),`\n`]}),`\n`,(0,n.jsxs)(e.li,{children:[`\n`,(0,n.jsx)(e.p,{children:\"Start a new Codex session so it loads the plugin.\"}),`\n`]}),`\n`,(0,n.jsxs)(e.li,{children:[`\n`,(0,n.jsx)(e.p,{children:\"Ask Codex to analyze a real workflow:\"}),`\n`,(0,n.jsx)(o,{children:(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-text\",children:`Analyze web traffic for the last 30 days and call out meaningful changes.\n`})})}),`\n`]}),`\n`]}),`\n`,(0,n.jsx)(e.p,{children:\"The first Altertable tool call opens OAuth authorization in your browser. Choose the organization and environment Codex should access, then return to Codex.\"}),`\n`]}),(0,n.jsxs)(l,{sectionId:\"verify\",sectionTitle:\"Verify\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,n.jsx)(e.h2,{id:\"verify\",children:\"Verify\"}),`\n`,(0,n.jsx)(e.p,{children:\"List installed plugins and MCP servers:\"}),`\n`,(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-bash\",children:`codex plugin list\ncodex mcp list\n`})}),`\n`,(0,n.jsx)(e.p,{children:\"Then ask:\"}),`\n`,(0,n.jsx)(o,{children:(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-text\",children:`Use Altertable to list my available catalogs.\n`})})}),`\n`,(0,n.jsxs)(e.p,{children:[\"Codex should call \",(0,n.jsx)(e.code,{children:\"initialize\"}),\" first and then inspect the catalogs.\"]}),`\n`]}),(0,n.jsxs)(l,{sectionId:\"tools\",sectionTitle:\"Tools\",anchors:\"\",ancestors:\"\",index:\"3\",children:[(0,n.jsx)(e.h2,{id:\"tools\",children:\"Tools\"}),`\n`,(0,n.jsxs)(e.ul,{children:[`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.a,{href:\"/docs/agents/setup#skills-included\",children:\"Altertable Skills\"}),\" provide workflows for exploration, SQL, funnels, web traffic, insights, and platform operations.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.a,{href:\"/docs/agents/mcp\",children:\"Altertable MCP\"}),\" provides governed access to catalogs, queries, insights, findings, and tasks.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[\"The optional \",(0,n.jsx)(e.a,{href:\"/docs/lakehouse/clients/cli\",children:\"Altertable CLI\"}),\" supports shell automation, CI, ingestion, SQL, and structured agent output.\"]}),`\n`]}),`\n`,(0,n.jsx)(e.p,{children:\"If you only need the MCP server, add it without installing the plugin:\"}),`\n`,(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-bash\",children:`codex mcp add altertable-mcp --url https://mcp.altertable.ai/mcp\n`})}),`\n`,(0,n.jsxs)(e.p,{children:[\"Do not add a duplicate when \",(0,n.jsx)(e.code,{children:\"codex mcp list\"}),\" already shows the server.\"]}),`\n`]}),(0,n.jsxs)(l,{sectionId:\"choose-between-skills-mcp-and-the-cli\",sectionTitle:\"Choose between Skills, MCP, and the CLI\",anchors:\"\",ancestors:\"tools\",index:\"4\",children:[(0,n.jsx)(e.h3,{id:\"choose-between-skills-mcp-and-the-cli\",children:\"Choose between Skills, MCP, and the CLI\"}),`\n`,(0,n.jsx)(e.p,{children:\"Use Skills for workflow guidance, MCP for interactive Altertable operations, and the CLI for terminal automation, CI, ingestion, or structured JSON. The CLI is optional and installed separately; Codex can use it alongside MCP.\"}),`\n`]}),(0,n.jsxs)(l,{sectionId:\"update\",sectionTitle:\"Update\",anchors:\"\",ancestors:\"\",index:\"5\",children:[(0,n.jsx)(e.h2,{id:\"update\",children:\"Update\"}),`\n`,(0,n.jsx)(e.p,{children:\"Refresh released skills from the configured marketplace:\"}),`\n`,(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-bash\",children:`codex plugin marketplace upgrade altertable-ai\n`})}),`\n`,(0,n.jsxs)(e.p,{children:[\"Then open \",(0,n.jsx)(e.code,{children:\"/plugins\"}),\" to install the available Altertable update.\"]}),`\n`]}),(0,n.jsxs)(l,{sectionId:\"troubleshooting\",sectionTitle:\"Troubleshooting\",anchors:\"\",ancestors:\"\",index:\"6\",children:[(0,n.jsx)(e.h2,{id:\"troubleshooting\",children:\"Troubleshooting\"}),`\n`,(0,n.jsxs)(e.ul,{children:[`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Plugin is missing:\"}),\" run \",(0,n.jsx)(e.code,{children:\"codex plugin marketplace list\"}),\", refresh the Altertable marketplace, and install the plugin again.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Skills do not appear:\"}),\" start a new Codex session after installation or update.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"MCP server is missing:\"}),\" install the plugin again or add the hosted server directly.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Authorization does not finish:\"}),\" complete the browser flow opened by Codex and choose an organization and environment.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Wrong environment is connected:\"}),\" remove the Altertable MCP connection and authorize it again with the correct environment.\"]}),`\n`]})]})]})}function p(t={}){let{wrapper:e}=t.components||{};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(h,{...t})}):h(t)}function a(t,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+t+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return w(y);})();\n;return Component;"},"_id":"docs/agents/setup/codex.mdx","_raw":{"sourceFilePath":"docs/agents/setup/codex.mdx","sourceFileName":"codex.mdx","sourceFileDir":"docs/agents/setup","contentType":"mdx","flattenedPath":"docs/agents/setup/codex"},"type":"Docs","path":"/agents/setup/codex","level":3,"parent":"agents/setup"}