Skip to content
priyansh19Public

About

Opensource platform to hire, manage, and collaborate with AI agents as virtual employees in a shared 3D office

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

CrewSpace

Hire AI agents. Give them an office. Let them run your company.

Quickstart Β· Features Β· Roadmap Β·

MIT License Discord Node 20+ Self Hosted


What is CrewSpace?

CrewSpace is an open-source platform to hire, manage, and collaborate with AI agents as virtual employees in a shared 3D office.

It looks like a company dashboard β€” but under the hood it has org charts, live agent chat, a persistent memory graph, a 3D office, kanban boards, heartbeat scheduling, cost governance, and full audit trails.

Think of it as the operating system for AI-native companies.

You define the goal β†’ You hire the agents β†’ CrewSpace runs the company
Works with OpenClaw
OpenClaw
Claude
Claude Code
Codex
Codex
Cursor
Cursor
Bash
Bash
HTTP
HTTP

Without CrewSpace vs With CrewSpace

Without CrewSpace With CrewSpace
❌ Dozens of AI tabs open with no shared context. Restart and lose every conversation. βœ… Every agent has a persistent session, a ticket, and a memory. Nothing is lost on reboot.
❌ Copy-paste the same background into every agent before each run. βœ… Context flows automatically β€” task β†’ project β†’ company goal. Agents always know the why.
❌ Scripts and config folders scattered everywhere. You reinvent coordination from scratch every time. βœ… Org chart, ticketing, delegation, and governance built in. Run a company, not a pile of scripts.
❌ Runaway agent loops rack up hundreds of dollars before you notice. βœ… Per-agent token and cost budgets enforced atomically. Agents stop the moment they hit the limit.
❌ No record of what your agents decided, learned, or remembered between runs. βœ… Persistent memory graph per agent β€” facts, decisions, and learnings injected into every run.
❌ No way to see which agents are working, idle, or stuck right now. βœ… Live 3D office β€” watch agents collaborate in real time, see who's busy and who's waiting.
❌ Scheduled work requires manual kickoff or fragile cron glue outside your AI stack. βœ… Built-in heartbeat scheduler triggers agents automatically. Managers supervise and escalate.
❌ Talking to a specific agent means opening yet another tab and losing all history. βœ… Direct streaming chat with any agent β€” memory-enriched, session-aware, real-time SSE.
❌ Agents can't delegate, escalate, or spawn sub-agents without custom scaffolding. βœ… Native delegation and org hierarchy β€” a CEO agent can spin up and supervise a full team.
❌ Plugin integrations require hacking prompts or tool wrappers by hand. βœ… First-class plugin SDK β€” ship sandboxed integrations with typed APIs and UI components.

Features

πŸ™οΈ 3D Office β€” See Your Agents Work

A live, interactive 3D office where every agent has a desk, a room, and a real-time status. Driven entirely by backend data β€” not a visualization, but a live window into your running company.

  • Agents assigned to rooms by role (CEO cabin, dev workstations, server room, conference rooms, kitchen)
  • Real-time status badges: working, meeting, idle, collaborating
  • Click any agent to open their profile, task history, and memory graph
  • Org-aware layout β€” managers in meeting rooms, engineers at workstations

πŸ’¬ Agent Chat β€” Talk to Any Agent

Full streaming chat with any agent. A real conversational session with memory, history, and context β€” not a one-shot prompt.

  • Multi-agent sessions β€” pull multiple agents into the same conversation
  • SSE token streaming β€” responses stream word-by-word in real time
  • Memory injection β€” every message automatically enriched with the agent's knowledge graph via RAG
  • Session persistence β€” history survives restarts and resumes from where you left off
  • Sidebar with all sessions β€” browse past conversations across all agents at a glance

🧠 Memory Graph β€” Agents That Learn and Remember

Every agent builds a persistent knowledge graph across runs. Facts, decisions, patterns, and learnings accumulate automatically.

  • Memory types: fact, insight, decision, pattern, learning
  • RAG-powered retrieval β€” semantically relevant memories injected into every run and chat message
  • Task-scoped memory β€” specific learnings linked to the task that produced them
  • Auto-extraction β€” memories automatically extracted from completed task outputs
  • Visual memory browser β€” explore and edit an agent's full knowledge graph from the UI
  • Full REST API for CRUD on memory entries and graph links

πŸ“‹ Kanban Board β€” Agile for AI Teams

A full task board where you create work and agents execute it at their own pace.

  • Columns: backlog β†’ in progress β†’ review β†’ done
  • Assign tasks to any agent; agents pick them up on next heartbeat or immediately
  • Atomic checkout β€” prevents two agents from picking up the same task simultaneously
  • Sub-tasks and parent-child hierarchy β€” break epics into child tasks
  • Comments, approvals, and work products β€” agents attach outputs and request reviews directly on the card
  • Priority, labels, estimates, and due dates
  • Real-time board updates as agents move their own cards

πŸ’“ Heartbeat Scheduler β€” Autonomous 24/7 Execution

Agents don't wait to be prompted. They wake on a schedule, check for assigned work, and act.

  • Cron-based heartbeat per agent β€” configurable interval per role
  • Routines β€” define recurring agent invocations with queue, drop, or catch-up policies
  • Delegation flows up and down the org chart automatically
  • Agents self-report blockers to their manager on the next heartbeat
  • Managers re-prioritize and reassign when sub-agents are stuck

βœ… Approvals β€” Human in the Loop

Board-level governance gates for critical agent actions.

  • Agents submit hire proposals, strategy changes, and CEO-level decisions for human review
  • Board members approve, reject, or request revisions with comments
  • All approvals are logged in the immutable activity trail
  • Approval gates can be required before agents proceed with high-stakes tasks

🎯 Goals & Projects β€” Every Agent Knows Why

Tasks carry the full goal ancestry from company mission down to the individual ticket.

  • Company mission injected into every run automatically
  • Project goals propagate context to all child tasks
  • Goal hierarchy: company mission β†’ project goal β†’ task description
  • Agents consistently explain decisions relative to the goal, not just the ticket title

πŸ“Š Org Chart β€” A Real Company Structure

Build a proper AI company with reporting lines, roles, and titles.

  • CEO β†’ CMO / CTO β†’ VPs β†’ Engineers / QA / SRE hierarchy
  • Every agent has a title, role, assigned manager, and team
  • Governance gates: approve hires, override strategy, pause or terminate any agent
  • Export org chart as JSON, SVG, or PNG

πŸƒ Execution Workspaces β€” Sandboxed Agent Runtime

Every agent task runs in a managed execution workspace with policy enforcement and full observability.

  • Isolated runtime sandbox per task execution
  • Operation logging β€” every tool call, file access, and sub-process recorded
  • State management across runs β€” agents resume where they left off
  • Policy enforcement β€” budgets, rate limits, and capability restrictions applied atomically

πŸ’° Cost Control β€” No Runaway Spend

  • Monthly token and dollar budget per agent β€” enforced atomically at checkout
  • Real-time cost tracking per run, task, project, and company
  • Billable vs. non-billable cost splits
  • Agents hard-stop the moment they hit their budget limit
  • Manager agents re-prioritize and redistribute work when teams hit limits
  • Spend trend charts and breakdowns across your entire AI portfolio

πŸ“œ Activity Log β€” Full Audit Trail

Every mutation in the system is recorded in an immutable, queryable activity log.

  • Tracks agent actions, board decisions, config changes, cost events, and task transitions
  • Scoped per company β€” no cross-company data leakage
  • Filterable by agent, event type, and time range
  • Powers compliance, debugging, and post-mortems

πŸ“₯ Agent Inbox β€” Work Queue for Agents

Agents have a structured inbox of tasks assigned to them, with checkout semantics and priority filtering.

  • Tasks surface in the inbox sorted by priority and deadline
  • Agents claim tasks atomically β€” no double-execution
  • Blocked tasks escalate automatically to the reporting manager
  • Human operators can view any agent's current queue

πŸ”Œ Plugin System β€” Extend Everything

Ship new capabilities as sandboxed plugins without touching core code.

  • Plugin SDK (@crewspaceai/plugin-sdk) with typed APIs, worker context, and UI bridge hooks
  • UI slots: dashboard panels, sidebar widgets, entity detail extensions, launcher placements
  • Plugin capabilities: webhooks, scheduled jobs, persistent state, event subscriptions, tool registration
  • Plugin lifecycle management: install, enable/disable, configure, uninstall
  • Full dev server and testing utilities included in the SDK

🏒 Multi-Company β€” One Deployment, Many Orgs

  • Complete data isolation between companies in a single deployment
  • One control plane for your entire AI portfolio
  • Export/import entire companies β€” agents, configs, skills, goals β€” with automatic secret scrubbing and collision handling
  • Company branding, custom domains, and isolated audit trails

πŸ”Œ Bring Your Own Agent

Any agent, any runtime. If it can receive a prompt and return a result, it works in CrewSpace.

  • Built-in adapters: Claude Code, OpenClaw / Hermes, Codex, Cursor, Gemini, Pi, OpenCode, HTTP / Bash
  • Skill injection β€” agents receive CrewSpace-specific capabilities at runtime, no retraining needed
  • Skills Manager β€” toggle which skills are active per agent and per company
  • Agent instructions β€” dynamic instruction bundles with path-based overrides and full revision history
  • Plugin SDK for building and publishing custom adapters

Quickstart

Self-hosted. No account required.

npx crewspaceai onboard --yes

Opens the browser automatically. Creates an embedded Postgres database and generates your first admin invite link.

Manual setup:

git clone https://github.com/priyansh19/CrewSpace.git
cd CrewSpace
pnpm install
pnpm dev

API + UI starts at http://localhost:3100. Embedded Postgres is created automatically β€” no database setup needed.

Requirements: Node.js 20+, pnpm 9.15+

Docker:

docker run -d \
  --name crewspace \
  -p 3100:3100 \
  -e BETTER_AUTH_SECRET=your_secret_here \
  -v crewspace-data:/crewspace \
  crewspaceai/crewspace:latest

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  CrewSpace                   β”‚
β”‚                                              β”‚
β”‚  React UI  ←→  Express API  ←→  Postgres    β”‚
β”‚     ↓               ↓                        β”‚
β”‚  3D Office      Adapter Layer                β”‚
β”‚  Agent Chat     β”œβ”€β”€ Claude Code              β”‚
β”‚  Kanban Board   β”œβ”€β”€ OpenClaw / Hermes        β”‚
β”‚  Memory Graph   β”œβ”€β”€ Codex / Cursor           β”‚
β”‚  Org Chart      └── HTTP / Bash / Custom     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Layer Stack
Frontend React 18, Vite, TailwindCSS, React Three Fiber (3D)
Backend Node.js, Express 5, TypeScript
Database PostgreSQL (embedded via embedded-postgres, or bring your own)
Auth better-auth
ORM Drizzle ORM
Real-time SSE (Server-Sent Events) for chat streaming and live runs
3D Engine Three.js via React Three Fiber + Drei

API Overview

CrewSpace exposes a REST + SSE API. Key endpoint groups:

Group Base Path Description
Agents /api/companies/:id/agents CRUD, config, skills, org chart
Agent Chat /api/agents/:id/chat Streaming chat (SSE), session history
Memory Graph /api/agents/:id/memories CRUD memories, graph links, RAG search
Heartbeat Runs /api/agents/:id/runs Invoke, list, cancel, stream events
Issues / Board /api/companies/:id/issues Kanban tasks, assignment, status
Org Chart /api/companies/:id/org-chart JSON / SVG / PNG export
Companies /api/companies Multi-company management

See docs/api/ for full API reference.


Development

pnpm dev              # Start API + UI in watch mode
pnpm dev:server       # Server only
pnpm build            # Build all packages
pnpm typecheck        # TypeScript check
pnpm test:run         # Run test suite
pnpm db:generate      # Generate DB migration
pnpm db:migrate       # Apply migrations

See doc/DEVELOPING.md for the full development guide.


Roadmap

Status Feature
βœ… 3D Office β€” live visualization of your entire agent workforce
βœ… Agent Chat β€” streaming direct chat with any agent, session-aware and memory-enriched
βœ… Multi-agent chat sessions β€” bring multiple agents into a single conversation
βœ… Kanban Board β€” agile task management with per-agent assignment and status tracking
βœ… Heartbeat Scheduler β€” autonomous 24/7 task execution without manual kickoff
βœ… Memory Graph β€” persistent agent knowledge (facts, decisions, learnings) with RAG retrieval
βœ… Cost tracking and per-agent token budgets β€” enforced atomically, no runaway spend
βœ… Skills Manager β€” manage and toggle agent capabilities per company
βœ… Plugin system β€” custom adapters, knowledge bases, tool queues via typed SDK
βœ… Company import / export β€” portable org snapshots, share or migrate entire companies
βœ… Multi-adapter support β€” Claude Code, OpenClaw / Hermes, Codex, Cursor, Gemini, Pi, HTTP
πŸ”¨ Crewmart β€” one-click marketplace to install pre-built agent company templates
πŸ”¨ Artifacts & Deployments β€” agents that ship code, files, and live previews as first-class outputs
πŸ”¨ Multiple Human Users β€” invite teammates, assign roles, collaborate inside one CrewSpace company
πŸ”¨ Cloud / Sandbox agents β€” isolated execution via e2b, Cursor cloud, and hosted sandboxes
πŸ”¨ Desktop App β€” native macOS / Windows app with tray agent status and offline support
πŸ”¨ MAXIMIZER MODE β€” fully autonomous company that self-assigns, self-schedules, and self-improves

Why CrewSpace is different

Atomic execution Task checkout and budget enforcement are atomic β€” no double-work, no runaway spend.
Persistent agent state Agents resume the same task context across heartbeats instead of restarting from scratch.
Memory-enriched everything Every run, every chat message is automatically enriched with relevant agent memories via RAG.
Live 3D presence Not just logs β€” a spatial, visual representation of your entire agent workforce in real time.
Goal-aware execution Tasks carry full goal ancestry so agents consistently see the "why," not just a title.
True multi-company isolation Every entity is company-scoped β€” one deployment runs many companies with separate data and audit trails.
Portable org structures Export entire companies β€” agents, configs, skills β€” with secret scrubbing and collision handling.

FAQ

What does a typical setup look like? A single Node.js process manages an embedded Postgres and local file storage. For production, point it at your own Postgres and deploy however you like. Tailscale works great for mobile access on a self-hosted instance.

Can I run multiple companies? Yes. One deployment supports unlimited companies with complete data isolation.

How is CrewSpace different from OpenClaw or Claude Code? CrewSpace uses those agents. It orchestrates them into a company β€” with org charts, memory, chat, budgets, goals, governance, and a 3D office.

Do agents run continuously? Agents run on scheduled heartbeats and event-based triggers (task assignment, @-mentions). Continuous agents like OpenClaw are also supported.

Is this production-ready? CrewSpace is actively developed and used in production. The core platform is stable. As of v0.0.1 the 3D office, memory graph, agent chat, and kanban board are all shipped and functional.


Contributing

Contributions are welcome. See CONTRIBUTING.md for details on how to get started.


License

MIT Β© 2026 CrewSpace


Open source under MIT. Built for people who want to run companies, not babysit agents.

About

Opensource platform to hire, manage, and collaborate with AI agents as virtual employees in a shared 3D office

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages