Claude Code
Overview
This guide walks you through setting up the KumoSDK and Kumo Coding Agent with Anthropic Claude Code in desktop and CLI environments.
Claude Code is an AI coding agent by Anthropic. 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
- Access to a KumoRFM environment, including an API key and any required API URL
- An Anthropic account
- Claude Code installed and authenticated. See the official Claude Code docs for desktop app and CLI installation.
Step 1: Create a Project
Create or open a project directory:
Desktop app: Open Claude Code and select your project folder.
CLI: Navigate to your project in the terminal.
Step 2: Install KumoSDK
Verify:
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 vianpx skills add.
Install the context:
The second line tells Claude Code to read the agent’s knowledge base on startup.
Install the skills (optional):
Step 5: Use the Kumo Coding Agent
Desktop app:
- Open Claude Code
- Select your project folder (if not already open)
- Type a prompt in the chat panel:
- Claude Code will read the Kumo Coding Agent context, inspect the data, build a graph, write PQL, and run the prediction.
- Review the changes Claude proposes. You can approve, edit, or reject each change before it is applied.
CLI:
Start an interactive session:
This opens an interactive prompt. Type your request:
You can also run a single prompt directly:
Step 6 (Optional): Upgrade
Upgrade KumoSDK:
Upgrade the Kumo Coding Agent:
To pin to a specific version:
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 your project’s
CLAUDE.mdcontains the line referencingkumo-coding-agent/CLAUDE.md - Restart Claude Code or start a new session with
claude
Claude Code CLI not found
Next Steps
- Setup for SDK fundamentals
- Make Predictions for PQL query reference
- Kumo Coding Agent for agent source and skills