MCPcopy Create free account
hub / github.com/Claw-AI-Lab/Claw-AI-Lab

github.com/Claw-AI-Lab/Claw-AI-Lab @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
3,640 symbols 13,594 edges 236 files 1,164 documented · 32% ● updated 2d ago★ 1,2151 open issues

Browse by type

⨍ Functions 3,044◇ Types & classes 556↳ Endpoints 40
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Claw AI Lab

Claw AI Lab

An Autonomous Multi-Agent Research Team

One dashboard. An entire research team.

Homepage arXiv MIT License Python 3.11+ Node.js 18+

Overview · Features · Showcase · Quick Start · Configuration · Contributing · Citation · Community


Updates


Overview

Claw AI Lab is a lab-native multi-agent research platform for interactive, scalable AI-driven science. From a single prompt, it spins up a coordinated AI research team—complete with literature review, ideation, coding, experimentation, figure generation, and paper writing—managed through a unified web dashboard.

  • Lab-Native Multi-Agent Team: Configure customizable roles, research directions, and collaborative workflows instead of relying on a single agent or a rigid serial pipeline.
  • Parallel Scheduling & Knowledge Sharing: Orchestrate multiple agents and projects concurrently with a FIFO-based scheduler, maximizing compute utilization while sharing findings across runs.
  • Human-in-the-Loop Control: Intervene at any point to resolve ambiguity, inject new ideas, or iteratively refine research via rollback and continuation.
  • Unified Dashboard: Turn end-to-end automated research into prompts and clicks—monitor live events, manage queues, and inspect every artifact in one place.

Community contributions are warmly welcome—see Contributing or join our Community group for beta testing and discussion.


Dashboard

Claw AI Lab Dashboard

Launch projects, monitor agents, and inspect every artifact from a single interface.

Real-time event stream · Multi-project overview · One-click rollback & resume · Artifact inspector


Key Features

Capability Description
Interactive Dashboard Real-time web UI with live event stream, data shelf, multi-project monitoring, rollback/resume, and artifact inspection.
Claw-Code Harness Reads your local codebases, datasets, and checkpoints—and writes runnable experimental code directly back to disk.
End-to-End Pipeline Goes from one prompt to a complete deliverable: paper, runnable code, figures, and experiment logs.
Three Research Modes Explore (open-ended research), Discussion (multi-agent debate & consensus), and Reproduce (empirical reproduction).
Flexible Model & Search Stack Supports OpenAI-compatible, OpenAI, DeepSeek, and ACP providers; separate text/coding/image model endpoints; fallback chains; and optional Exa/Tavily web search.

Showcase

Generated Projects

Each project autonomously produces a complete research package: Paper · Code · Figures · Experiment Logs.

OATH: Quantifying Video Hallucination via Occlusion Debt Lab Explore · CV · Video Generation Evaluation OATH Pipeline Overview Best method achieves 0.1714 primary error vs. CLIP-T baseline 0.2393 (↓28%) Reproducing PhyCustom on FLUX Reproduce · Image Gen · Multi-Concept Customization Reproducing PhyCustom on FLUX Pipeline 5 methods × 3 seeds = 15 runs; output-space decoupling leads at 0.2813

More Generated Project Showcases

Discussion Mode

Multi-agent debate on: "What is the most deployable direction for Video Action Models in Embodied AI?"

Agent A — World Model + MPC (Model Predictive Control) is the most industrially stable path.

Agent B — "Train with video, infer with action" is the most deployable policy paradigm.

Agent C — Execution monitoring & SOP (Standard Operating Procedure) automation lands fastest as a product.

Consensus: The most deployable form is not a single end-to-end model, but a layered, modular system—use video supervision during training to learn rich dynamics, output actions directly at inference for low latency, and layer planning, MPC, and safety modules on top for closed-loop robustness and recovery.

Top 3 Research Directions (ranked by deployability)

# Direction Deployability
1 Layered Video-Action Stack — video-action joint training + direct action inference + MPC safety Highest — best balance of latency, interpretability, and safety
2 Video-to-Plan / SOP — demo videos → step sequences & skill graphs for existing robots High — smallest embodiment gap, clearest commercial path
3 Execution Monitor — real-time step tracking, anomaly detection, and re-planning triggers High — fastest to production; critical for industrial reliability

Key Contradictions Resolved

Debate Resolution
World Model + MPC vs. Direct Action? Combine both — world model for representation, direct action for control, MPC for safety
Human video: valuable or too much gap? Pre-training yes; direct low-level transfer is not yet reliable
Is monitoring a "real" action model? Not the backbone, but fastest to reach production value

Full Transcript → · Consensus Synthesis →


Quick Start

Prerequisites: Python 3.11+ (Conda recommended) and Node.js 18+.

1. Install

git clone https://github.com/Claw-AI-Lab/Claw-AI-Lab.git
cd Claw-AI-Lab

# Create Python environment
conda create -n clawailab python=3.11
conda activate clawailab

# Backend
cd backend/agent
pip install -e ".[all]"
pip install websockets

# Frontend
cd ../../frontend
npm install
cd ..

# ML dependencies (add extra packages as needed for your domain)
pip install torch torchvision diffusers transformers accelerate safetensors datasets \
            huggingface_hub opencv-python pandas matplotlib scikit-image scipy einops tqdm

2. Configure

Edit examples/config_template.yaml with your LLM credentials and local Python environment path:

llm:
  base_url: "your-api-endpoint"
  api_key: "your-api-key"
  primary_model: "gpt-5.4"
  coding_model: "gpt-5.4"
  image_model: "gemini-3-pro-image-preview"
  image_base_url: ""   # Optional: separate endpoint for image generation (defaults to base_url)
  image_api_key: ""    # Optional: separate API key for image generation (defaults to api_key)
  fallback_models:
    - "qwen3.5-plus"
    - "qwen-plus"

experiment:
  sandbox:
    python_path: "/absolute/path/to/clawailab/bin/python"  # Run: conda activate clawailab && which python

3. Run

./start.sh              # Start all services (resource monitor, agent bridge, frontend)
./start.sh status       # Check service status
./start.sh restart      # Restart all services
./start.sh stop         # Stop all services
./start.sh reset-state  # Clear persisted projects, queues, and shared indices (run after stop)
./start.sh fresh        # Stop, reset state, and start cleanly

Open http://localhost:5903/ in your browser, submit a research topic, and monitor your agents live.

Custom ports: If default ports (5903, 8905, 8906) are in use, override them at launch: RESOURCE_MONITOR_PORT=8915 AGENT_BRIDGE_PORT=8916 FRONTEND_PORT=5913 ./start.sh


Tips for Best Results

# Recommendation Why
1 Prepare local codebases, datasets & checkpoints and provide their paths when submitting a project Avoids large downloads and transient network failures during experiment runs
2 Use a strong coding model (e.g., gpt-5.4) Produces higher-quality experiment code with fewer debug iterations
3 Verify the IMPORTANT fields in Configuration Reference Misconfigured API keys, Python paths, or time budgets are the #1 cause of failed runs

Configuration Reference

Full field-by-field guide for examples/config_template.yaml. Fields marked IMPORTANT are the ones you almost always need to configure before running.

Click to expand full configuration reference

```yaml

=== Project ===

project: name: "PROJECT_ID" # Project identifier, used for directory naming and UI display mode: "full-auto" # Pipeline mode: "full-auto" runs all stages without human gates

=== Research ===

research: topic: "TOPIC" # Research topic or paper to reproduce (required) domains: # Research domains for literature search scope - "deep-learning" daily_paper_count: 5 # Number of papers to retrieve per search query quality_threshold: 3.0 # Minimum relevance score (1-5) for literature screening reference_papers: [] # List of reference paper titles or arXiv IDs

=== Notifications ===

notifications: channel: "console" # Notification channel: "console" | "discord" | "slack" on_stage_start: true # Notify when a stage begins on_gate_required: true # Notify when human approval is needed

=== Knowledge Base ===

knowledge_base: backend: "markdown" # Storage format: "markdown" | "obsidian" root: "docs/kb" # Root directory for knowledge base files

=== OpenClaw Bridge ===

openclaw_bridge: use_message: false # Enable progress notifications via messaging platforms use_memory: false # Enable cross-session knowledge persistence use_web_fetch: false # Enable live web search during literature review

=== LLM ===

llm: provider: "openai-compatible" # LLM provider: "openai-compatible" | "openai" | "deepseek" | "acp" base_url: "your-api-endpoint" # ⚠️ IMPORTANT: API endpoint URL api_key: "your-api-key" # ⚠️ IMPORTANT: API key (or set via api_key_env) api_key_env: "RESEARCHCLAW_API_KEY" # Environment variable fallback for API key primary_model: "gpt-5.4" # ⚠️ IMPORTANT: Main model for research, analysis, and writing coding_model: "gpt-5.4" # ⚠️ IMPORTANT: Model for code generation (S11) image_model: "gemini-3-pro-image-preview" # ⚠️ IMPORTANT: Model for paper figure generation image_base_url: "" # Optional: separate API endpoint for image generation (falls back to base_url) image_api_key: "" # Optional: separate API key for image generation (falls back to api_key) fallback_models: # Fallback model chain when primary model fails - "qwen3.5-plus" - "qwen-plus"

=== Security ===

security: hitl_required_stages: [] # Stage numbers requiring human approval (e.g., [5, 9, 20])

=== Experiment ===

experiment: mode: "sandbox" # Execution mode: "sandbox" (local Python) | "docker" | "simulated" time_budget_sec: 2400 # ⚠️ IMPORTANT: Max wall-clock time per experiment run (seconds) max_iterations: 3 # Iterative refinement cycles in S15 (Edit-Run-Eval loop) metric_key: "primary_metric" # Primary evaluation metric name metric_direction: "minimize" # Optimization direction: "minimize" | "maximize" datasets_dir: "" # ⚠️ IMPORTANT: Absolute path to datasets directory checkpoints_dir: "" # ⚠️ IMPORTANT: Absolute path to model weights directory codebases_dir: "" # Ab

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 2,018
Function 1,026
Class 534
Route 40
Interface 22

Languages

Python98%
TypeScript2%

Modules by API surface

backend/agent/tests/test_rc_executor.py246 symbols
assets/showcase/quantifying-hallucination/main.py151 symbols
backend/agent/researchclaw/pipeline/executor.py107 symbols
backend/services/agent_bridge.py94 symbols
backend/agent/tests/test_rc_templates.py91 symbols
assets/showcase/adaptive-mrsa/codes/models.py78 symbols
backend/agent/tests/test_decision_agent.py73 symbols
backend/agent/tests/test_rc_literature.py64 symbols
backend/agent/tests/test_figure_agent.py62 symbols
backend/agent/tests/test_rc_citation_verify.py59 symbols
backend/agent/tests/test_benchmark_agent.py57 symbols
assets/showcase/reproduce-phycustom/main.py53 symbols

For agents

$ claude mcp add Claw-AI-Lab \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page