Documentation Index
Fetch the complete documentation index at: https://docs.openserv.ai/llms.txt
Use this file to discover all available pages before exploring further.
Using OpenServ Skills in Any AI IDE (Cursor, Windsurf, GitHub Copilot)
To build with OpenServ, your AI agent needs to “read” the manual. We call these manuals Skills.Phase 1: Get the Skills
You need to give your IDE access to theSKILL.md files so it knows how to write code for you.
Option A: OpenServ via ClawHub (Fastest)
If you are using ClawHub or the OpenClaw desktop app:- Open the Skills Market.
- Click Install on the skills you need (e.g.,
openserv-client,openserv-agent-sdk). - The docs are automatically added to your project context.
Option B: The “Docs” Folder (Recommended for VS Code / Cursor)
Simply download the skills into adocs/ folder in your project.
“@docs/openserv-skills/openserv-client/SKILL.md how do I create a task?”
Option C: Online References (Cursor / Windsurf)
If you don’t want local files, stick to the URL references.“@https://github.com/openserv-labs/skills/blob/main/skills/openserv-client/SKILL.md build me a workflow”
Phase 2: Setup & Authentication
This guide focuses on the critical setup step that often trips developers up: Environment Variables and Authentication. Because OpenServ agents can define their own infrastructure (wallets, API keys) on the fly, you don’t need to manually manage complex.env files if you follow the Provisioning Pattern.
The Golden Rule: “Provision First, ask questions later”
In any AI IDE, when you ask the AI to “build me an agent,” it will often try to manage API keys for you. Stop it. Instead, prompt your AI to use theprovision() pattern.
1. The .env Strategy
You typically only need ZERO or ONE environment variable to start.
Scenario A: Fresh Start (Recommended)
You don’t need any environment variables.- The AI writes code using
provision(). - When you run the code (
npx tsx agent.ts),provision()checks if you have a wallet. - If not, it creates a new wallet and writes the
WALLET_PRIVATE_KEYto your.envfile automatically. - It then registers your agent and writes
OPENSERV_API_KEYto your.envautomatically.
Scenario B: “Bring Your Own Key” (BYOK)
You already have an OpenServ account or a specific wallet you want to use.- Create a
.envfile. - Add
WALLET_PRIVATE_KEY=0x...(your private key). - Run your code.
provision()sees the key, logs in with it, and reuses your existing identity.
2. Prompting Your AI IDE
When asking Cursor/Windsurf/Copilot to build an agent, use a prompt like this to ensure it handles Auth correctly:“Build an OpenServ agent that [does X]. Use theopenserv-clientprovision()method to handle authentication and registration. Do NOT assume I have an API key; letprovision()create the wallet and keys for me if they don’t exist. Use Runless Capabilities where possible for the agent logic.”
3. How provision() handles logic
The provision() function is your best friend. It is idempotent, meaning you can run it 1000 times and it won’t break anything.
instance: agent?
When you do this, provision() automatically injects the generated API key and Auth Token directly into your agent object.
- Old Way:
agentneededprocess.env.OPENSERV_API_KEY. - New Way:
agentgets the key fromprovision(). Your code doesn’t even need to readprocess.env.
4. Troubleshooting Env Vars
Issue: “Error: Missing API Key” Fix: You probably didn’t passinstance: agent to provision.
- Bad:
const agent = new Agent(); await provision({...}); await run(agent); - Good:
const agent = new Agent(); await provision({ agent: { instance: agent, ... } }); await run(agent);
.env. Delete the OPENSERV_API_KEY line from your .env and run the script again. provision() will fetch a fresh valid key for your wallet.
5. Finding All Methods (The “Missing Link”)
TheSKILL.md file is just a summary and quick start. It does NOT contain every method.
If your AI keeps hallucinating methods or you need to know exactly what parameters client.agents.create() accepts, you MUST read the reference.md file in each skill.
Prompting Tip:
“Please read https://github.com/openserv-labs/skills/blob/main/skills/openserv-client/reference.md to see the full list of available methods before generating code.”
Key Reference Files:
- openserv-agent-sdk Reference
- openserv-client Reference
- openserv-launch Reference
- openserv-ideaboard-api Reference
- openserv-multi-agent-workflows Reference
6. How to Fix Common Errors
If you encounter cryptic errors (like 400 Bad Request on provision, or 500 on triggering), DO NOT guess the solution. Each skill has a dedicatedtroubleshooting.md file that lists common errors and their exact fixes.
Prompting Tip:
“I am getting error [ERROR_MESSAGE]. Please check https://github.com/openserv-labs/skills/blob/main/skills/openserv-client/troubleshooting.md (or the relevant skill) to find the solution.”
Key Troubleshooting Files:

