Overview
This guide walks you through setting up the KumoRFM SDK and Kumo Coding Agent for use with KumoRFM in a VS Code project workflow. Unlike the notebook-based setup, this guide focuses on working with regular Python files, the VS Code integrated terminal, and coding-agent workflows that edit scripts, configuration, and project files directly. This guide assumes minimal prior experience with VS Code, Python virtual environments, and coding agents. If you already have a preferred local setup, you can jump directly to the relevant sections.Prerequisites
Make sure you have:- VS Code installed (Download)
- Python installed at the system level
- A Kumo account and API key (Create)
- An OpenAI or Anthropic subscription (recommended if you plan to use the Kumo Coding Agent)
- Homebrew (macOS package manager) (Install)
- GitHub CLI installed and authenticated (required for installing coding-agent skills and some GitHub-powered workflows)
🖥 Terminal
Part 1: Setup for VS Code + KumoRFM SDK
Step 1: Create or Open a Project Folder
Start with a normal VS Code project folder rather than a notebook file.- Open VS Code
- Choose File -> Open Folder
- Create or open a project directory such as
kumo-demo
Step 2: Create a Python Virtual Environment
Open the VS Code integrated terminal:- Use Terminal -> New Terminal
- Or press
Ctrl + backtick
🖥 Terminal
.venv directory.
You can also manually choose it:
- Open the Command Palette (
Cmd + Shift + P) - Search for
Python: Select Interpreter - Select the interpreter inside
.venv
Step 3: Install the KumoRFM SDK
Install the SDK inside the active virtual environment:🖥 Terminal
🖥 Terminal
Step 4: Authenticate the KumoRFM SDK
You need an API key before you can make calls to KumoRFM. There are two common approaches:- use interactive authentication
- set
KUMO_API_KEYmanually
scripts/setup_kumo.py:
🖥 Terminal
Step 5: Optional Dependencies
Install Graphviz if you want to visualize graphs from a script-based workflow. Install the system dependency:🖥 Terminal
🖥 Terminal
Part 2: Using the VS Code CLI Workflow
The VS Code integrated terminal is one of the easiest ways to work with the KumoRFM SDK in an editor-based workflow. Instead of switching between separate apps, you can keep all of the following in one place:- your Python scripts
- your terminal commands
- your coding agent chat panel
- project files such as
README.md, config files, and sample queries
🖥 Terminal
- you want reproducible scripts instead of interactive notebook cells
- you want Codex or Claude Code to edit source files directly
- you want to commit your work to Git as normal Python code
- you want to run the same setup locally, in CI, or on another machine
Part 3: Add a Coding Agent (Optional)
Choose one of the following to add an AI coding agent to your workflow:- Flow A - OpenAI Codex
- Flow B - Anthropic Claude Code
Step 1: Install the VS Code ExtensionThis action adds a directory named Step 3: Use Codex from VS CodeCodex works especially well in VS Code when you ask it to edit files in your project instead of isolated notebook cells.Good requests include:You can also use Codex to:Step 4 (Optional): UpgradeUpgrade the KumoRFM SDKUpgrade the Kumo Coding Agent
- Open VS Code Extensions (
Cmd + Shift + X) - Search for “Codex - OpenAI’s coding agent”
- Install the extension
- Sign in with ChatGPT (recommended)
- Or configure
~/.codex/config.toml
- the ChatGPT icon in the top-right corner added by the extension
- Context (knowledge base): documentation, PQL rules, workflow guides, and connector references that teach the agent how to use the Kumo platform
- Skills (slash commands): actions like
/kumo-issueand/kumo-prfor reporting bugs and contributing fixes
🖥 Terminalkumo-coding-agent to your project. It contains the Kumo Coding Agent’s knowledge base. Confirm that this directory appears in your project.Codex reads AGENTS.md automatically. No extra configuration is required.Install the skills (optional) inside a Codex session:🤖 Codex🤖 Codex- add or update Python scripts
- create
requirements.txtorREADME.mdfiles - draft PQL queries
- help debug terminal errors from your local environment
The integrated terminal is still where you run Python scripts and other shell commands. Codex helps generate and edit the files, but you remain in control of executing the workflow locally.
🖥 Terminal🖥 TerminalStep 4: Verify the Setup
Create a minimal script such asscripts/run_prediction.py:
🖥 Terminal
Run Your First Example
Once the SDK and coding agent are set up, ask the agent to help you scaffold a simple project-based workflow. Examples:- create a
LocalGraphfrom local data files - draft a first predictive query in Python
- create a reusable script instead of a one-off notebook
- add logging, comments, and lightweight validation
Troubleshooting
VS Code cannot find the interpreter
- Re-run
Python: Select Interpreter - Make sure
.venvexists in the project folder - Restart VS Code after creating the environment
The SDK will not import
🖥 Terminal
The API key is missing
Export the API key before running a script:🖥 Terminal
The coding agent edited files, but the workflow still fails
- Re-run the script from the integrated terminal
- Check that the active terminal is using
.venv - Review the modified files before rerunning commands
- Ask the agent to fix the error using the exact terminal output
Next Steps
- Setup for SDK fundamentals
- Make Predictions for PQL query reference
- Kumo Coding Agent for agent source and skills