3.7 KiB
Quickstart Guide
This path is aligned to the current repository and current UI. It gets you from clone to a live workspace on the canvas without assuming any extra platform wrapper.
Prerequisites
- Docker + Docker Compose v2
- Node.js 20+
- Go 1.25+
- One model/API key for the runtime you want to use
ANTHROPIC_API_KEYOPENAI_API_KEYGOOGLE_API_KEY- or another provider routed through LiteLLM
Step 1: Clone the repository
git clone https://github.com/Molecule-AI/molecule-monorepo.git
cd molecule-monorepo
Step 2: Start the shared infrastructure
Recommended:
./infra/scripts/setup.sh
That brings up Postgres, Redis, and Langfuse.
If you only want the raw compose flow:
docker compose -f docker-compose.infra.yml up -d
Step 3: Start the platform
cd workspace-server
go run ./cmd/server
The control plane listens on http://localhost:8080.
Step 4: Start the canvas
In a new terminal:
cd canvas
npm install
npm run dev
Open http://localhost:3000.
Step 5: Deploy your first workspace
On a fresh canvas, the center empty state shows template cards plus a blank-workspace option.
You can either:
- Click a template to provision a ready-made workspace.
- Click
+ Create blank workspace.
At the same time, the bottom-left onboarding wizard appears and guides the first-run flow.
Step 6: Add an API key
- Select the workspace.
- Open the
Configtab. - Expand
Secrets & API Keys. - Add the API key in either:
This WorkspaceGlobal (All Workspaces)
Global keys are inherited by all workspaces. Workspace keys override globals with the same name.
Step 7: Send the first message
- Open the
Chattab. - Send a prompt such as:
What can you help me with in this workspace?
Responses are delivered through the platform A2A proxy and pushed back to the canvas through WebSocket events, with polling kept only as recovery fallback.
What To Try Next
- Expand to a team: right-click a workspace and choose
Expand to Team. - Switch runtime: use
Config -> Runtimeto move between LangGraph, DeepAgents, Claude Code, CrewAI, AutoGen, and OpenClaw. - Inspect operations: check
Activity,Traces,Events, andTerminal. - Use global keys: configure one provider once in
Secrets & API Keys -> Global. - Import a template: use the template palette or
POST /templates/import. - Import/export bundles: duplicate or move workspace trees as
.bundle.json.
Troubleshooting
| Problem | What to check |
|---|---|
| Workspace stays offline | Platform is running, Docker is available, and the runtime has valid credentials |
| Template palette is empty | workspace-configs-templates/ exists and the platform can read it |
| Chat says agent unavailable | Workspace status is not yet online or degraded |
| No responses from model | Add the correct API key in Secrets & API Keys and restart the workspace |
| Want direct DB access | Postgres and Redis are internal-only; use docker compose exec postgres psql or docker compose exec redis redis-cli |
Architecture At A Glance
Browser --> Canvas (Next.js :3000)
|
v
Platform (Go :8080)
| | |
| | +--> WebSocket events / A2A proxy / templates / bundles
| +----------> Redis
+------------------> Postgres
|
v
Provisioned workspaces
(LangGraph / Claude Code / CrewAI / AutoGen / etc.)
For the full system model, see Architecture.