SidClaw

create-sidclaw-app

Scaffold a new SidClaw-governed agent project with one command.

create-sidclaw-app

Scaffold a complete governed agent project with one command. The CLI creates a working project with a registered agent, 3 demo policies, and a runnable governance example.

Usage

npx create-sidclaw-app my-governed-agent

The interactive CLI walks you through:

  1. Project name — directory name for the new project
  2. Framework — choose from 7 templates
  3. API key — paste an existing key or sign up at app.sidclaw.com
  4. API URL — defaults to https://api.sidclaw.com (change for self-hosted)

Framework Templates

TemplateLanguageWhat it creates
LangChain (Python)PythonLangChain agent with governed tool wrappers
LangChain.jsTypeScriptLangChain.js agent with governTools()
Vercel AI SDKTypeScriptNext.js chat app with governed Vercel AI tools
OpenAI AgentsPythonOpenAI Agents SDK with governed function tools
MCP ProxyTypeScriptMCP governance proxy wrapping an upstream server
Plain TypeScriptTypeScriptMinimal SDK example with withGovernance()
Plain PythonPythonMinimal SDK example with with_governance()

What Gets Created

For each template, the CLI:

  1. Scaffolds the project — creates the directory with framework-specific code
  2. Registers an agent — calls the SidClaw API to create an agent identity
  3. Creates 3 demo policies:
    • Allow read operations (auto-approve)
    • Require approval for write operations
    • Deny delete operations in production
  4. Writes config — saves the API key and agent ID to .env
  5. Installs dependencies — runs npm install or pip install

Running the Scaffolded Project

cd my-governed-agent

# TypeScript templates:
npm start

# Python templates:
python main.py

Open the SidClaw dashboard to see the approval requests and audit traces generated by the demo.

Non-Interactive Mode

Pass all options as CLI arguments:

npx create-sidclaw-app my-agent \
  --framework langchain-python \
  --api-key ai_... \
  --api-url https://api.sidclaw.com

Requirements

  • Node.js 18+ (for running npx)
  • For Python templates: Python 3.10+
  • A SidClaw API key (get one at app.sidclaw.com or from a self-hosted instance)