-
Notifications
You must be signed in to change notification settings - Fork 2
Getting Started
lacausecrypto edited this page Apr 6, 2026
·
2 revisions
Get OCC running and execute your first chain in under 5 minutes.
- Node.js >= 20 (download)
-
Claude CLI installed and authenticated:
npm install -g @anthropic-ai/claude-code claude auth login
Note: Claude CLI is required for the default
claudeprovider. You can also use OpenRouter, OpenAI, Ollama, or HuggingFace without Claude CLI.
git clone https://github.com/lacausecrypto/OCC.git
cd OCC/mcp-server
npm install
npm run buildNo config needed — just run:
npm run rest
# Server running on http://localhost:4242# Terminal 1: Backend
cd OCC/mcp-server && npm run rest
# Terminal 2: Frontend
cd OCC/frontend-react && npm install && npm run dev
# Dashboard at http://localhost:5173-
Copy the example config:
cd .. # back to OCC root cp .mcp.json.example .mcp.json
-
Edit
.mcp.jsonwith your absolute paths:{ "mcpServers": { "chain-orchestrator": { "command": "node", "args": ["/absolute/path/to/OCC/mcp-server/dist/index.js"], "env": { "CHAINS_DIR": "/absolute/path/to/OCC/chains", "PIPELINES_DIR": "/absolute/path/to/OCC/pipelines", "REST_PORT": "4242" } } } } -
Start:
cd mcp-server npm start
docker compose up -d
# Backend: http://localhost:4242
# Frontend: http://localhost:5173# Execute the deep-researcher chain
curl -X POST http://localhost:4242/execute/deep-researcher \
-H "Content-Type: application/json" \
-d '{"input": {"topic": "quantum computing breakthroughs"}}'
# Response: {"executionId": "1a2b3c4d..."}
# Check status
curl http://localhost:4242/executions/1a2b3c4d
# Stream real-time progress
curl -N http://localhost:4242/executions/1a2b3c4d/stream- Open
http://localhost:5173 - Click on a chain in the sidebar
- Fill in inputs and click Run
- Watch real-time SSE mini-terminals per step
Simply ask Claude:
Run the deep-researcher chain on "quantum computing breakthroughs"
Claude will use the run_chain MCP tool automatically.
Go to Settings > LLM Providers in the dashboard to add:
- OpenRouter — 200+ models (GPT-4o, Gemini, Llama, DeepSeek...)
- OpenAI — GPT-4o, o3-mini
- Ollama — Local models (Settings > Ollama to pull models)
- HuggingFace — 118 free models via Inference API (Settings > HuggingFace)
Each step in a chain can use any model from any enabled provider via the model field.
Create chains/hello-world.yaml:
name: hello-world
description: "My first OCC chain"
version: "1.0"
inputs:
- name: name
description: "Who to greet"
steps:
- id: greet
prompt: "Write a creative greeting for {input.name}. Be fun and original."
output_var: greeting
- id: poem
depends_on: [greet]
prompt: |
Based on this greeting: {greeting}
Now write a short 4-line poem for {input.name}.
output_var: poem
output: poemExecute it:
curl -X POST http://localhost:4242/execute/hello-world \
-H "Content-Type: application/json" \
-d '{"input": {"name": "Alice"}}'- Chain Format — Learn the full YAML specification
- Step Types — Explore all 11 step types
- Pre-Tools — 29 data injection tools
- Cookbook — Practical recipes and patterns
- REST API — Full API reference (102 endpoints)