Documentation

Learn the concepts, APIs, and best practices to build with CloneJutsu.

Getting Started

Create a Project

Create a project in the Console, then navigate to Project Infoto manage API tokens and configuration.

API Tokens

Use a project-scoped token in the Authorization header for all API requests:

Authorization: Bearer YOUR_API_TOKEN

Your First Agent

Create a Coordinator and attach Subagents in the Console, or via the REST API.

curl -X POST https://api.clonejutsu.dev/user/agents \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "agent_name": "my_agent",
  "agent_system_prompt": "You are a helpful agent.",
  "associated_tool_ids": [],
  "associated_rule_ids": [],
  "activated": true,
  "agent_type": "COORDINATOR",
  "attached_agent_ids": [],
  "default_max_replicas": 1
}'

Chat & Streaming

Start a streaming chat with a Coordinator:

curl -N -X POST https://api.clonejutsu.dev/user/chat/stream \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "Summarize the attached PDF",
  "coordinator_agent_id": "00000000-0000-0000-0000-0000000000CC"
}'