Overview
This guide walks you through setting up the KumoSDK and Kumo Coding Agent with OpenAI Codex in desktop and CLI environments. Codex is an AI coding agent by OpenAI. It can read your project files, write code, run commands, and iterate on errors. You interact with it by typing natural language prompts.Prerequisites
Make sure you have:- Python 3.10 to 3.13 installed
- A Kumo account and API key (Create)
- An OpenAI account (ChatGPT or API)
- Codex installed and authenticated. See the official Codex docs for desktop app and CLI installation.
Step 1: Create a Project
Create or open a project directory:Step 2: Install KumoSDK
Step 3: Authenticate with Kumo
Set your API key:Step 4: Install Kumo Coding Agent
The Kumo Coding Agent has two parts:- Context (knowledge base): Documentation, PQL rules, workflow guides, and data connector references that teach the agent how to use the Kumo platform. Installed by cloning the repository.
- Skills (slash commands): Actions like
/kumo-issueand/kumo-prfor reporting bugs and contributing fixes. Installed via the skill installer.
AGENTS.md automatically. No extra configuration needed.
Install the skills (optional).
Open a Codex session (see Step 5) and type:
Step 5: Use the Kumo Coding Agent
Desktop app:- Open the Codex desktop app
- Select your project folder
- Type a prompt in the chat panel at the bottom:
- Codex will read the Kumo Coding Agent context, inspect the data, build a graph, write PQL, and run the prediction.
- Review the changes Codex proposes and approve them.
Codex runs headless in CLI mode. Provide the full prompt upfront. For multi-step workflows, run Codex multiple times or use the desktop app for interactive sessions.
Step 6 (Optional): Upgrade
Upgrade KumoSDK:Troubleshooting
kumoai cannot be imported
API key is missing
Agent does not respond with Kumo knowledge
- Verify
kumo-coding-agent/exists in your project directory - Verify
kumo-coding-agent/AGENTS.mdexists - Restart Codex or open a new session
Codex CLI not found
Next Steps
- Setup for SDK fundamentals
- Make Predictions for PQL query reference
- Kumo Coding Agent for agent source and skills