Skip to content
Engine has no release yet: these pages describe unreleased main.

Quickstart: Build a Company with CEO, CTO, PM & Engineer

This guide brings up a four-agent company on your machine with no external integrations: the engine, its infrastructure, and a model (Claude Code signed in with an Anthropic API key or your Claude plan). At the end you watch an agent run its first turn on the dashboard, then wire in real integrations one at a time.

Crewlet uses a two-tier config:

  • Tier A: ops-owned crewlet.yaml on disk (where this node’s stream, store and leases live, API host/port/auth, logging including where it writes). Restart to change.
  • Tier B: founder-owned company.yaml, imported into the store (everything else: identity, roles, units, LLM providers, MCP servers, integrations, budgets). Versioned and live-editable.

Prefer not to write the YAML by hand? An AI assistant can interview you and author both files, checking its work against the shipped schema: see Authoring with an AI assistant. This page builds the config manually, which better teaches what the fields mean.

Crewlet is one binary. Its event stream is an embedded NATS JetStream server and its database is two local files it creates: no broker to operate, no DSN. The stream takes an external address when a deployment outgrows that; see Deployment.

It does need the harness its model runs through, driven as a process on this machine. This page uses Claude Code, so claude --version should answer before you go on; see Installation § A harness for it, Codex and OpenCode.

The compose file in a repo checkout is for the integration loops (Mattermost, GitLab) further down, not for the engine.

1. Write the Tier A bootstrap (crewlet.yaml)

Section titled “1. Write the Tier A bootstrap (crewlet.yaml)”
logging:
level: debug # every subsystem's DEBUG lines, in colour when you
# are watching a terminal. Drop the block (or set
# `info`) once the company runs
format: console # console (default), text, json
file: # optional, and worth it even here: a durable copy
path: "./acme-data/crewlet.log" # IN ADDITION to what you are watching.
# It rotates itself at 100 MB, keeping five files,
# so scrolling past the interesting line costs
# nothing. See Deployment → Logging
stream:
type: embedded # a JetStream server inside this process: no
# listener, no port, no service to operate
store_dir: "./acme-data/stream" # REQUIRED. Leave it empty and the
# stream is in-memory, so nothing published
# survives a restart — including the people
# who sign in, whom every node keeps on a
# state log whatever backends the company
# names, and its items, pages and messages,
# which are on Worklet, Doclet and Chatlet
# here. The engine
# REFUSES to boot without one rather than lose
# them at the first restart
store:
path: "./acme-data/acme.db" # this node's own database, owned
# EXCLUSIVELY by this process. Not a shared
# database and no DSN: two engines pointed at one
# path corrupt it. A second file is created beside
# it for the replicated estate — a snapshot is a
# copy of one of the two, which is why they are
# not one file. See concepts/architecture.md
coordination:
type: local # a single node holding its own seat leases;
# a fleet needs embedded-kv (see guides/fleet.md)
api:
host: "0.0.0.0"
port: 8000 # a port > 0 makes `crewlet run` serve the API EMBEDDED in
# the engine process (dashboard + webhooks included) — one
# process is the whole stack. (Any free port will do; pick
# one nothing else on the host has already taken. Port 80
# is worth the privileged bind only once an external
# service registers a webhook URL against this engine —
# see guides/deployment.md.)
external_url: "http://localhost:8000"
# REQUIRED once a port is set. Where a BROWSER reaches
# this deployment, which is not what the two lines above
# bind: its scheme decides the session cookie's flags and
# its host is the origin every write is checked against.
# Behind a proxy, the public address.
auth:
limits: # people sign in with a login and a password; unset, a
second_factor: optional
# second factor (an authenticator app) is REQUIRED too.
# `optional` lets the company drop it, which is fine
# here because the browser reaches this on loopback;
# leave the line out anywhere else. Nobody holds a
# password yet: the token below invites the first
# person onto their seat (step 4).
admin: serve # whether THIS node grants admin to those who hold it:
# `serve`, or `refuse` to clamp admin away here and keep
# every app. Required once a port is set.
tokens: # at least one is REQUIRED once a port is set: every route
# needs a credential, and this is also what puts the
# first person on their seat on a fresh deployment.
- id: founder
token: "${CREWLET_API_TOKEN_FOUNDER}" # 26 characters at minimum
grants: [admin] # what this credential may do — required and
# non-empty: admin, worklet, doclet,
# artifacts, chatlet, gitlet, atlas. Admin runs the
# company and includes every app.
secrets: # REQUIRED. Every record on every state log — the
# tracker's, the knowledge base's — is signed
# under this keyring, because a record is
# whatever the next node applies and the broker
# vouches for a connection, never a record; a
# fleet's broker admits only keys derived from
# it. `crewlet secrets keygen` mints one and
# prints the export line
active_key_id: "2026-01"
keys:
- id: "2026-01"
material: "${CREWLET_SECRET_KEY_2026_01}"

2. Write the Tier B company (company.yaml)

Section titled “2. Write the Tier B company (company.yaml)”
name: "Acme AI"
mission: "Ship AI-powered products fast"
policies:
- "All features need PM sign-off before development starts"
- "Communicate decisions in writing"
sign_in:
require_second_factor: false # a password alone, which crewlet.yaml's
# limits allow on loopback. Leave it out
# anywhere else: a second factor is then
# required. Settings › Sign-in policy
# changes this and the session limits
providers:
llm:
default: # Claude Code, the default harness
model: sonnet # in the harness's own grammar: an alias or a model id
auth:
mode: api-key # your Anthropic API key, read from ANTHROPIC_API_KEY.
# On a Claude Pro / Max plan instead, drop this block
# and sign in once — see "LLM options" below
embeddings:
type: openai
model: text-embedding-3-large # the model decides the vector width
# (3072 here), so there is no
# `dimensions` to set
api_key: "${OPENAI_API_KEY}" # used by the agent-learning subsystem
# (diary vector search + episode recall)
sandbox: # where every seat's executor runs: its harness's
# own run, in a box on this machine
local:
state_dir: "./acme-data/sandboxes"
default_run_in: direct # the claude binary, run as you, on this host;
# it calls the seat's tools back through this
# node's own listener, so nothing else to set.
# Every seat's executor is Claude Code's own
# run, fully permissioned (its shell and editor,
# bypassPermissions) as your own account: a
# first run on your own machine while its
# seats take work from you alone. Before a
# seat takes work from anyone else, move the
# runs into a container (Next steps below)
# Org-wide roles — these sit above all teams and manage team leads.
roles:
# You, in the chart. A `kind: human` seat is addressable but never
# spawned (no runtime, no inbox, no LLM) — it gives escalation a person
# to stop at, and lets agents recognise your activity on the surfaces
# you connect later. It is also the seat you join on in step 4: every
# person holds a human seat, so a company with none admits nobody.
# `contact` is optional — without one you are reached through the
# dashboard only, whose chat is the engine's own and mentions you by your
# handle, and agents cannot @-mention you on a vendor's chat you connect
# later; scope `manages` to the top seat so you aren't copied on
# everything.
- name: Your Name
handle: founder # see the note under this block — set these now
kind: human
manages: [ceo] # BY HANDLE. A `manages:` entry names a seat by
# its handle and a unit by its key — never by a
# display name, which is prose you will edit
contact:
# One identity per surface you connect. Swap this for
# `slack_user_id` (a `U…` member ID) if Slack is your chat.
mattermost_user_id: "${MATTERMOST_FOUNDER_USERNAME}" # your chat username
- name: CEO
handle: ceo
goal: "Set product vision, prioritize initiatives, and make final calls"
backstory: "Experienced founder who balances speed with quality"
manages: [cto, pm]
# A zero-integration way to see your first agent turn: a scheduled task.
# Delete this once real work arrives, from you or an integration: every
# fire continues, and pays for, the session the last one left.
schedules:
- name: hello-crewlet
cron: "*/5 * * * *"
task: "Write a short status note on what the company should focus on this week."
# Flexible org structure — use any nesting depth and unit types.
units:
- name: Product Management
id: pm-team # the unit's KEY: what a `manages:` entry and a
# root seat's `unit:` resolve. The name above is
# display. Leave it out and one is minted from
# the name at import (`product-management` here)
type: team
lead: pm # the lead seat's HANDLE
purpose: "Define what gets built and why"
# The team's room. Chat defaults to Chatlet too, so this opens
# a channel called `product` with this unit's seats in it — and it is an
# address, so it is `product` rather than `#product` or `Product Team`.
channel: product
# A unit's identity on the tracker and the knowledge base. Both default
# to Worklet and Doclet, so these two keys are all it takes to
# give the team somewhere to file work and write things down: no site,
# no project to create, no per-seat account. They name a Jira project and
# a Confluence space just as well if you switch the backend later, which
# is why they are not called `jira_project` / `confluence_space`.
project: PROD
space: PROD
roles:
- name: PM
handle: pm
goal: "Turn business goals into clear specs and prioritized backlogs"
backstory: "Data-driven product manager who writes crisp requirements"
manages: [eng]
- name: Core Engineering
id: eng-team
type: team
lead: cto
purpose: "Build and ship the product"
channel: engineering
project: ENG
space: ENG
goals:
- "Ship MVP in 4 weeks"
- "Maintain test coverage above 80%"
roles:
- name: CTO
handle: cto
goal: "Set technical direction, make architecture decisions, unblock engineers"
backstory: "Senior architect with deep distributed systems experience"
manages: [eng]
- name: Engineer
handle: eng
goal: "Implement features, write tests, and ship quality code"
backstory: "Full-stack engineer who writes clean, tested code"

Set handle now, and keep it. The handle is the seat’s identity twice over: an agent’s durable id is a UUIDv5 over "<company name>:<handle>" (org.DeriveAgentID), and every lead: and manages: resolves through it. Changing a handle, or the company name, mints a new id and orphans that seat’s diary and onboarding markers; a handle change also orphans what is kept under the handle itself (episodes, skills, counterparty profiles, conversations’ sessions). The seat keeps working, without what was orphaned. A seat that leaves handle unset gets one derived from its name, and every write stores it, so an edit of the stored company (the org builder, PATCH /config, the per-entity routes) keeps it when a name is corrected. A file does not: every import of one (crewlet config import, crewlet run -import-company) mints a missing handle afresh from the file’s name, so correcting a name in a file without the handle replaces the seat. Declare handle on every seat, and id on every unit, in any file you keep. With its handle declared, a seat’s name is display only, so renaming is free. See Agent Runtime.

The providers.llm map takes named entries (roles select one via role.llm; default is the fallback). Every entry is a harness the engine drives (the vendor’s own, signed in with your plan or key); its fields are that harness’s settings: which harness (harness), which model in its grammar, and how it signs in (auth):

providers:
llm:
# Anthropic's models through Claude Code, on an API key
default:
model: sonnet
auth: { mode: api-key } # ANTHROPIC_API_KEY
# ... or on your Claude Pro / Max plan: no key at all
plan:
model: sonnet
# OpenAI's models through Codex
gpt:
harness: codex
model: gpt-5
auth: { mode: api-key } # CODEX_API_KEY; leave it out for a ChatGPT login
# Open models through OpenCode — on OpenRouter here, or any provider it speaks to
open:
harness: opencode
model: openrouter/qwen/qwen3-coder # <provider>/<model>
env:
OPENROUTER_API_KEY: "${OPENROUTER_API_KEY}"

An entry on a plan is signed in once, on the engine host, through the harness’s own login, landing in a directory of Crewlet’s rather than your personal one:

Terminal window
crewlet llm login plan -from-host # adopt the `claude` login this machine already has
crewlet llm login plan -capture-token # or mint a headless token into the secret store

An entry on a key needs only the key, exported or stored with crewlet secrets set ANTHROPIC_API_KEY. Before the node’s first start, or with it stopped, a captured token and a stored key both go straight into the fleet’s secret store, sealed under the keyring step 3 exports: the command starts the node’s own broker on stream.store_dir, listening on nothing, writes, and stops it; the engine adopts that store at start. While the command holds the store, crewlet run on the node is refused, naming its pid (two brokers on one directory would corrupt it). Once the node runs, the same commands go through its API instead, with a Tier A token in CREWLET_API_TOKEN. Either way, crewlet llm doctor checks every entry end to end (the binary, its version, how it is signed in, and a real tool call) before a seat depends on it. Each seat gets its own isolated harness home, so agents never inherit one another’s sessions or memory; that, every sign-in route and the other harnesses are in LLM Backends.

Useful knobs: different roles can use different entries (executives on a frontier model, junior agents on a cheaper one), and a role’s llm also accepts a list: llm: [plan, default] runs on the flat-rate plan and falls through to the metered key while the plan’s window is spent. Point a role’s llm_auxiliary (reflection, summaries, the turn-start filters) at a fast, cheap entry: each of those calls pays a harness launch under a fixed deadline; see Auxiliary work and latency. There is no temperature, effort or output cap to set: each harness configures its own model. Embeddings (providers.embeddings) power the agent-learning subsystem and are the one model call the engine makes itself, to any OpenAI-compatible endpoint via base_url.

Control costs with ceilings at the org and/or per-agent level, one per calendar window on the company’s clock: day, week and month, each optional:

token_budget: # org-wide, every seat together
day: 500000 # a runaway loop burns at most a day's allowance
month: 8000000 # the bill
units:
- name: Core
id: core
type: team
lead: cto
roles:
- name: CTO
handle: cto
token_budget: {day: 100000} # this seat alone, on top of the org's
- name: Engineer
token_budget: {week: 250000}

A day runs local midnight to midnight, a week is the ISO week from Monday, a month the calendar month; each window reopens on its own. Leave a key out for no ceiling on that window; 0 is refused rather than read as unlimited. When a round would take a window past its ceiling, the agent’s turn stops immediately and a budget_exhausted event is emitted, naming the window and when it resets. Until then the agent’s new messages wait on its inbox, and are delivered when the window turns over, or at once if you raise the ceiling. Every turn launches an executor, which needs turn_engine.executor_min_budget_tokens (65000 by default) with the run’s brief beside it left in every capped window: a seat whose window leaves less waits parked the same way, and a token_budget ceiling below that floor is refused when you write it. The run’s own spend is charged when it is collected.

Usage is durable: it lives in the fleet’s coordination store, survives restarts and is one number for the whole company however many nodes run it. Read it against a running node:

Terminal window
crewlet budgets show # every scope's day, week and month, spent and capped

There is no reset: a window’s allowance returns when it turns over, and room before then is made by raising its ceiling through /config, a seat’s with PUT /config/roles/{handle} (see Budgets and spend).

Terminal window
crewlet secrets keygen -key-id 2026-01 # prints the export line below
export CREWLET_SECRET_KEY_2026_01="<the base64 key it printed>"
export CREWLET_API_TOKEN_FOUNDER="$(openssl rand -hex 32)"
export ANTHROPIC_API_KEY="sk-ant-..." # the `default` entry's key (auth.mode api-key)
export OPENAI_API_KEY="sk-..." # embeddings
export MATTERMOST_FOUNDER_USERNAME="you" # your chat username (the human seat)

Validate the Tier B YAML first (this reads no environment: ${VAR} references are checked as references, so it works before any secret is exported):

Terminal window
crewlet validate # both tiers, from ./crewlet.yaml and ./company.yaml

Then check the model end to end. This one does read the environment and sends real calls (a smoke test with a tool and two isolation probes), so it alone proves the harness is installed, signed in and still matches the profile Crewlet drives it with:

Terminal window
crewlet llm doctor # every providers.llm entry; -no-smoke skips the real calls

One command migrates the store, seeds the Tier B company and runs the engine:

Terminal window
crewlet run crewlet.yaml -company company.yaml

-company is a bootstrap seed: imported when no company exists yet, in the node’s store or anywhere in its fleet, and ignored once one exists, with a warning naming the file and the two ways to apply it. So a restart never reverts a live change however stale the file is, and neither does adding a node with this same command.

To make the file win, use a different flag: crewlet run -import-company company.yaml makes it the company over whatever the fleet is running. To change a running fleet with no restart, use crewlet config import company.yaml: it goes through the node’s API and every node converges on it.

A running node never goes back to the file: it runs what its fleet activated, and once a company exists it also starts on that one.

Or two steps, import once, then run:

Terminal window
crewlet config import company.yaml
crewlet run # boots from the store

With the engine stopped, the import is what this node boots on, and its start publishes it to the fleet: as the first company where the fleet has none, otherwise only while the fleet still runs the revision the import was built on, so a change made on a node that has fallen behind is never published over what the fleet moved on to (crewlet config import).

Both flags default to files in the working directory, crewlet.yaml and company.yaml, so a node with files named that way needs neither.

Starting: the port answers within a second of crewlet run, before the node is ready. While it boots, curl -s localhost:8000/health says "status": "starting" (503 while the node opens its store and broker, 200 once it is bringing up the company’s tools) and every other route answers 503 starting with a Retry-After; the dashboard is there once the log says api_listening and /ready answers 200. See While a node is starting.

Stopping: press Ctrl+C once for a graceful drain. Running agent turns finish and the HTTP surface stays up until they have: the dashboard shows the node draining, /health stays 200 and /ready answers 503, and every route that would start new work (a webhook, a config write) answers 503 naming the drain. The listener closes once the drain completes. Press it a second time to exit at once (the first press hands signal handling back to the OS so that works). There is no third tier. See Graceful shutdown. The logging.file block above already keeps the drain’s log, whatever happens to the terminal. If piping, use tee -i (crewlet run 2>&1 | tee -i run.log): a plain tee dies on the first Ctrl+C and the drain’s log has nowhere to go.

Open the dashboard at http://localhost:8000/. Opening it means signing in: every route needs a credential, reads included. People sign in with a login and a password and nobody has joined yet, so the screen says so and opens its API token form (on a deployment somebody has joined, it is behind Use an API token instead). Paste $CREWLET_API_TOKEN_FOUNDER: it is exchanged for a one-hour session; the browser keeps the session’s cookie and never the token, which is sent once, in a header.

Invite yourself onto your seat. Every person holds exactly one human seat for as long as they exist, so you join on the human seat company.yaml declares for you, with the handle founder. Open Company › Structure and its Table tab: your seat is the row under the name you gave it, with human · @founder beneath. Press its name to open the seat’s page, which says This seat is open and offers Invite and Add person (so do the seat’s panel, opened from Find a seat in the page bar, and the Person section of its editor). Press Invite (the dialog is for that seat only) and fill in

  • your email address: what the invitation is held against;
  • your access: tick Admin, which ticks and locks every app (Worklet, Doclet, Artifacts, Chatlet and Gitlet) beside it. The founder token holds admin, and nobody can confer a permission they do not hold. Keep Admin, or nobody after you can be invited or created except with the token again.

The link it shows is the credential and is shown once: copy it now. The engine sends no mail; getting it to anybody else you invite is yours. Until the link is redeemed, the open invitation holds the seat: the seat’s page names the invitation and your address, and nobody else can be put on it.

(Add person is the other way onto a vacant seat: it creates the person active at once and shows a one-time password link that sets their first password. For yourself the invitation is shorter, since redeeming it signs you in.)

Open the link (this browser is fine). The dashboard’s invitation screen names who the invitation is for and the seat it binds, and who sent it when a person did (this one was issued under the founder token, so it names no sender). It asks for a login (proposed from your address, dotted like jane.doe; how you sign in beside your address), your name, and a password of at least twelve characters (sign_in.min_password_length raises that). Redeeming it puts you on the founder seat and signs you in: from your first sign-in you act as that seat. The secret after the . never leaves the page in a URL: the link carries it in the fragment, which no browser sends to a server, and the screen sends it in a header and a body.

Until a person holds a human seat, an agent uses no app for what that seat says. The seat’s contact lets agents recognise who is writing to them, but a permission is a person’s: until you redeem the invitation (or an administrator creates the person on the seat), a message from the founder’s chat account wakes an agent that files no task, reads and writes no page, posts in no room and authors no artifact for it, and tells you why (An agent uses only the apps of the person it works for). The same holds for every human seat you add later.

This walkthrough’s crewlet.yaml says limits: {second_factor: optional} and its company says sign_in: {require_second_factor: false}, so a password alone signs you in. Leave both lines out on a deployment reached off loopback: unset, a second factor is required, and the session a redemption or password sign-in opens for somebody holding none may only enrol one. The dashboard shows a QR code to scan with an authenticator app (with the key to type, and the otpauth:// link for an app on the same device, beside it), takes the first code, and shows the recovery codes once. See A required second factor is enrolled before anything else.

From now on the sign-in screen takes your login or address and your password. Your name at the sidebar’s foot opens your own Account: your password, two-step verification (an authenticator app, which you can set up there even where it is optional), recovery codes, where you are signed in and your personal access tokens. The menu beside your name holds the same link and signing out, here or everywhere at once. A gesture that changes who may do what, or how somebody proves who they are, asks you to confirm your password first, in one dialog. The founder token stays: it is what a pipeline uses, and the way back in when nobody who can sign in is available; a machine credential, not how people should sign in. Everybody after you arrives the same way, on a seat of their own: add a human seat for them (Company › Structure › Add › Add human seat), then an administrator invites them onto it, or creates them on it, from its page or panel, with every app ticked by default and Admin not. A person handed no permission still sees the company’s overview (Structure, what the agents are doing, spend and schedules), just not its tracker, knowledge base or chat.

From a shell instead, crewlet iam invite issues the same invitation through the running node, authenticating with CREWLET_API_TOKEN like every command that talks to one, and prints where the issue stands and its link once. -seat is required (every invitation names the seat its redemption binds) and crewlet iam seats -unheld lists the human seats nothing holds yet:

Terminal window
export CREWLET_API_TOKEN="$CREWLET_API_TOKEN_FOUNDER"
crewlet iam invite [email protected] -seat founder -grants admin

-grants admin stores admin and every app beside it; -grants takes admin, worklet, doclet, artifacts, chatlet, gitlet, atlas or none, and left out on an invitation it sends every app but atlas, and not admin.

invitation 0192f4c8-…
applied at CREWLET_IAM_LOG@0:3 (op 0192f4c7-…)
http://localhost:8000/dashboard#/invite/0192f4c8-….kR3…
expires 2026-06-21 12:00
This link is shown once. Send it to them yourself; Crewlet doesn't send email.

It lands on Home: company health (who is working, what waits on you, work in progress and finished, tokens spent), the decisions only you can make (answered there; an option of an agent’s question is a button), and what the company has done. With no activity each card says so; a condition the engine raised takes over the sentence under the greeting.

Sidebar, top to bottom: Home, Inbox, My work; Company (Principles, Brand, Structure, Schedules, Integrations, Budgets); Workspace (Worklet, Chatlet, Doclet, Artifacts, Live); Settings at the foot. A workspace’s sections are tabs in its page header, or Chatlet’s rail beside its rooms. g then a letter jumps between them, and ? lists every key. The control under the company’s mark (or ⌘\, Ctrl+\ off a Mac) folds the sidebar to an icon rail (Company and Workspace each one icon whose places open beside it) and stays as you left it. While an agent works, the Live row counts the seats at work and a Running group under the shortcuts (after Projects, Pinned and Starred) lists up to four running turns. Press one to watch it: its transcript, with the phase it is on open, or the executor it is parked on drawn live above its phases. g r does the same for the one running turn, and opens Live’s Now running when several run (or none).

Within five minutes the hello-crewlet schedule fires a TaskAssigned at the CEO. Live shows it: Now running has the seat working, and Turns shows the turn as it runs. Execute is Claude Code’s own run in a box, shown live and recorded as one round with the calls it made to the seat’s tools, beside the run’s card with its activity and tokens. Review follows. Each phase lists its rounds, the tools each called, and the prompts the model saw. Five minutes later it fires again and that turn continues the first one’s session, told how it ended: a schedule is a conversation of the seat that runs it (Scheduling), so every fire pays for the whole session. Execute both decides and acts; Review judges what the round landed. A seat’s very first turn runs Onboarding before them, where the agent reads its own team’s pages once. A finished phase updates in place, so you can read one while the next runs. Turn Engine is what each does.

Follow the turn to Worklet and Doclet, both the engine’s own: tracker.backend defaults to worklet and knowledge.backend to doclet, so your company has a tracker and a wiki from its first minute with nothing to set up. A seat files with create_work_item and writes with write_page; a row opens the item beside the list, and ⌘-click opens its page. Worklet opens as a list (one line per item), and Filter and Display in the bar decide what is on it and how it is drawn: a board, a table, a calendar or a timeline over the same rows. Projects beside it is the directory of what your units have declared.

My work and the Inbox answer for you, the person bound to the founder seat; every “do you lead this” rule is asked about your seat. My work is one tab per claim on attention (what they hold, the order somebody put it in, questions waiting on them and ones they wait on), with counts on the strip and a band naming whose day is on screen. The Queue is the work list narrowed to that person: same Filter, Display and scope controls, grouped by due date; in priority order, rows reorder by dragging. A question put to them is answered on its row in Asked of me. Signed in with the API token instead, the dashboard says so: a token bound to no seat is an ordinary state, not a fault, and its day is the one kept under its own login. See Humans in the Org Chart.

Chatlet is yours the same way, and only that way. Its rooms are the engine’s own (chat.backend defaults to chatlet) and every one is read and spoken in as your seat, because a room shows each speaker by seat and its members are seats: the units’ channels above are already open, with their seats in them. Signed in with the API token instead, Chatlet reads nothing at all, not even a public room, because that credential acts as no seat. See Chatlet.

⌘K (Ctrl+K elsewhere) searches everything and acts on it. Find a screen, task, page or colleague (# narrows to tasks, @ to agents, > to actions), or paste an event, trace or turn id out of a log to open it. A question of three words or more, after a pause, gets a short answer from your company’s pages and tasks with its sources and tokens, charged to the company’s budget, if the caller is bound to a seat (a signed-in person always is, or a directory-bound token). It runs on the auxiliary model of the seat you act as, so a token bound to no seat is told so. You can also assign the found task to an agent, ask an agent about what you typed (the answer lands in your Inbox) or file it as a task, each as you: under your seat when signed in as yourself, under the token’s own login when no seat binds it. A task is filed in the project on screen or your team’s, else in one you pick. An action the authority table would refuse says why on its row.

Your own AI assistant can read and write the same records over MCP. Point any client at /operator/mcp with your API token:

{
"mcpServers": {
"crewlet": {
"type": "http",
"url": "http://localhost:8000/operator/mcp",
"headers": { "Authorization": "Bearer ${CREWLET_API_TOKEN_FOUNDER}" }
}
}
}

It gets the same tracker, knowledge-base and chat tools a seat holds (twenty over the tracker, five over the pages and nine in the chat) and thirty-two more that no seat is given: the saved views, the catalogue write, a person’s own queue, inbox, pins, Home board and Ask Crewlet instructions, the trash, the board drag, the chat’s furniture (making a room, opening a conversation, a room’s settings and membership, editing and taking back a message, how far you have read), and the gestures a person makes about the company rather than its work: pausing and resuming a seat, running one of its schedules now, steering a running turn, answering an executor’s question, asking for a read of one of the atlas’s sources now, answering a question from the company’s knowledge and, where the company hosts its code, reading who read a unit’s repository and marking your own code notices and the files of a change you viewed. With the Atlas permission it also gets the company’s atlas: the same three tools a seat holds to read it, and the atlas’s eleven writes, which add, correct and confirm what it says. Each is decided by the same authority table a seat’s calls are, and knowledge search sits beside them. On the deployment’s token its writes carry the token’s own login, token:founder, with author kind operator, never an agent’s, so an audit can tell them from an agent’s. The token cannot write as your seat: a seat is held by one row of the identity directory, and yours is you. That is also why it is refused every chat tool, the reads included (unseated): chat is spoken in as somebody, and your own token, below, does. See the operator surface.

Once you sign in as a person, give the assistant your own token rather than the deployment’s. It acts as you (your seat, your permissions, its writes carrying your seat’s handle with author kind human) and every write it makes also records pat:<its id>, so what the assistant did stays tellable from what you did. Nobody else can mint it, an administrator included; you mint it yourself, and the command signs in as you for that one request:

Terminal window
crewlet iam token -login jane.doe -label "my assistant" # asks for your password

See machine tokens.

The same picture is available over the API:

Terminal window
curl -s -H "Authorization: Bearer $CREWLET_API_TOKEN_FOUNDER" \
http://localhost:8000/agents | python3 -m json.tool
curl -s http://localhost:8000/health

Every route needs that credential, reads included; /health and /ready are probes and the exception, which is why the second call carries nothing. That is also why the dashboard opened on its sign-in screen. Reads once served without one, so anyone who could reach port 8000 could read the LLM transcripts on /events; see Configuration § Auth for what replaced that posture and why it could not simply be defaulted the other way.

If you skipped the import, crewlet run boots in the unconfigured state with the API still serving, and you can bootstrap live without restarting. An unconfigured node is not idle: its identity estate runs from boot, so you can sign in on it with the founder token before any company exists. You cannot invite yourself yet (there is no seat to put you on, so an invitation there answers 409 no_active_revision): import or create the company with your human seat in it first, then invite yourself onto that seat as above. Worklet’s, Doclet’s and Chatlet’s routes answer 503 no_active_revision until the first revision arrives. That revision brings up everything the company needs, Worklet, Doclet and Chatlet included, with their projects, spaces and rooms, and the code sandbox when it configures providers.sandbox. The already-serving API then, with nothing restarted, answers the board’s and the pages’ questions, takes and serves a project’s files, and offers the tracker’s and the knowledge base’s tools to the dashboard’s buttons and to your own assistant over /operator/mcp. An assistant already connected that listens for tool changes (the 2026-07-28 MCP protocol’s subscriptions/listen stream) is told at once and lists again; one on an earlier protocol sees them at its next listing:

Terminal window
export CREWLET_API_TOKEN="$CREWLET_API_TOKEN_FOUNDER"
crewlet config import company.yaml

The engine holds its store, so the command goes through the node’s API: a PUT /config of the whole file, which stores it as the company’s first revision and activates it fleet-wide, exactly what a script driving the API directly sends (Configure via the API).

Or create the company from the dashboard: open Structure under Company (#/company/org). With no configuration active it opens on a form that starts the company from a template, has the engine check it, and creates it with PUT /config. Keep its Add a seat for yourself ticked: that seat is the one you then invite yourself onto, from Structure, as step 4 describes. The builder reads and writes the company document, so it needs a session holding admin: the one you signed in with using $CREWLET_API_TOKEN_FOUNDER carries it, and a person you invite needs it ticked to build the company, or to lead a unit, whose own team they may edit without it. The dashboard adds no model provider (Settings › Models & Fleets edits one the configuration already declares), so one step stays outside it. Until it is done the company runs and no agent seat takes a turn; whatever is sent to a seat waits on its inbox. The builder’s next steps give it: with crewlet run stopped, write the company to a file with crewlet config export, add providers.llm and providers.sandbox to it (local: {} with default_run_in: direct runs every executor on this host, as you: a first run on your own machine while its seats take work from you alone; a company with agent seats and a model is refused without a sandbox), sign the harness in with crewlet llm login (a captured token goes into the fleet’s secret store through the node’s own broker, which the command starts while the node is stopped), import the file and start the node again (Giving the company a model), and the work that waited runs.

Run the agents as their own node when you want webhooks to keep arriving while you restart them, or the agents on a host of their own. The API, the duties and the company’s data stay on the node you already have; the agents move to a node that holds no data: it keeps nothing that has to outlive it, and restarts in seconds whatever the company’s size.

Two changes to the crewlet.yaml above make it the data node: it becomes a member other nodes can join, and its leases become the fleet’s rather than its own.

# crewlet.yaml — the data node, as above plus:
node:
id: data-1
roles: [data, ingress, workers] # everything but the agents
stream:
store_dir: "./acme-data/stream"
leaf:
host: 127.0.0.1
port: 7422 # where the agents node joins, admitted
# on a key derived from secrets.keys
coordination:
type: embedded-kv # leases the agents node can see

The agents node gets a Tier A of its own. It needs no company.yaml, no API and no stream directory: it fetches the company from the data node, and its store is deleted every time it starts:

# agents.yaml — the agents node
node:
id: agents-1
roles: [seats]
store:
path: "./acme-agents/agents.db"
scratch: true
stream:
leaf:
urls: ["nats-leaf://127.0.0.1:7422"]
coordination:
type: embedded-kv
secrets: # the same keyring as crewlet.yaml — REQUIRED on
# every node: this one decrypts the company
# document and the secret store itself, and
# its leaf link is admitted by a key derived
# from it
active_key_id: "2026-01"
keys:
- id: "2026-01"
material: "${CREWLET_SECRET_KEY_2026_01}"
Terminal window
crewlet run -config crewlet.yaml -api-port 8000 # terminal 1
crewlet run -config agents.yaml -api-port 8001 # terminal 2

Every seat’s executor runs its harness in a box on the agents node, and the box calls the seat’s tools back through the tool bridge. The agents node serves that bridge itself, on its own port: a direct box is a process of the host it runs on, so it dials the node that launched it on loopback, and a node without the ingress role serves the bridge there to its own host’s loopback alone. The network still reaches nothing on port 8001 but /health and /ready, and its /ready turns 200 once the node has joined the fleet and been admitted; see Probes on a node without ingress. So neither node needs a bridge address here; export the variables from step 3 in each terminal and nothing more.

Started with -api-port 0 instead, the agents node binds nothing, and its boxes have no listener to dial: export CREWLET_MCP_BRIDGE_URL="http://127.0.0.1:8000", the data node’s API, in both terminals. The data node relays each call to the agents node over the broker, and needs the variable too: a node that runs no seats serves the bridge’s route only when it is set. A box in a container cell needs that address whatever the agents node binds; see Where a box dials it.

The agents node claims the seats once the data node answers that its records are level with its logs, and its seats’ tracker, knowledge and chat tools go through it. See Running One Agent Somewhere Else for what a node without data can and cannot do.

The data node exposes the same REST endpoints, webhook handlers (/webhooks/jira, /webhooks/slack/{handle}, /webhooks/github, /webhooks/gitlab, /webhooks/confluence, /webhooks/forge), and the /config/* CRUD surface (see API Endpoints). Mattermost is deliberately absent: it has no usable inbound webhook, so the engine holds one outbound websocket per agent seat instead, and its inbound path uses no HTTP route.

The engine has no importable API: every package lives under internal/, so the harness, the config format and the wire protocol are the whole public surface. That is deliberate: the two-tier config is the only way to describe a company, so nothing can drift between a YAML file and an embedding program.

Automating a deployment means driving crewlet and the REST API:

Terminal window
crewlet validate # check both tiers in CI
crewlet config import company.yaml # store the company; the run publishes it
crewlet run # start the node

See Configure via the API for editing a live company, and Tools & MCP for adding behaviour the agents can reach.

An org with no integrations already takes work from you as well as from its schedules: the engine runs its own tracker, wiki and chat, so a task you file or assign in Worklet, a page in Doclet and a post in a Chatlet room each wake the seats they reach. External surfaces put the company to work where your people already are, and add what those three do not: a code host for its code (Gitlet, the engine’s own git host, can also be one: Hosting Code on Gitlet) and a chat that reaches you when you are not looking. Pick yours in Choosing your stack (LLM, tracker + knowledge base, code host, chat, sandbox, with the hosted vs self-hosted options for each), then wire them in:

  • Move the runs into a container before a seat takes work from anyone else (a chat other people are in, a shared tracker, a code host). direct is for a first run on your own machine while its seats take work from you alone: every executor run is Claude Code’s own, fully permissioned, as your account, and once other people can give a seat work it acts on what they send. Give providers.sandbox.local an image with Claude Code installed (Bring your own image has two recipes, one with no image to build) and set default_run_in: container, with Docker or Podman on this machine; then stop the node, export CREWLET_MCP_BRIDGE_URL="http://127.0.0.1:8000", which the node reads as it starts, and start it again with crewlet run -import-company company.yaml. The boxes dial that address under the runtime’s name for this host, which Docker and Podman on Linux deliver from the boxes’ own network, where api.host above listens too; Local sandboxes says how to serve them there apart from the rest of the API. A box is seeded with the same crewlet llm login.
  • You already have chat. chat.backend defaults to the engine’s own, so the units you gave a channel above have rooms in the dashboard right now, with their seats in them, and you are in them as your own seat once signed in (above): post in one and its team’s agents wake to answer. It does not reach you when you are not looking: the engine sends no email, no push and no SMS, so a mention becomes an unread count and a mention feed. See Chatlet.
  • Connect a vendor chat instead (Slack or Mattermost, both below) if your people already live in one, or if being notified while away matters. It is exclusive with the engine’s own (one live chat home, or a person answers in the place the agents are not reading). Whichever you pick, first add the integration’s block to company.yaml (the page’s Configure in YAML section) with a ${VAR} for each credential: the provisioner mints exactly the variables the file names. It records what it mints through the running node, as the founder token, and the crewlet config import that ends each snippet hands the engine both: the node took its company from the file once, at step 3, so an edit to the file reaches it only through an import, and an apply is when the engine reads its secret store. If your company already runs on Slack, use it: the agents land where the conversations already happen, under the workspace admin and compliance setup you already have. It needs a public URL for its Events API, an app configuration token entered once on Slack’s connect form under Company › Integrations, and one Allow click per agent from the Slack integration’s Agents tab: the engine creates each agent’s app and seals its bot token when the click comes back. To try a vendor chat on this machine first, Mattermost ships in this repo’s docker-compose.yml and needs no account, no inbound URL and no clicks. Its block names the instance as url: "${MATTERMOST_URL}", team: nimbus (the team the script creates) and provisioning.admin_token: "${MATTERMOST_ADMIN_TOKEN}":
    Terminal window
    docker compose --profile mattermost up -d --wait
    scripts/mattermost-dev-bootstrap.sh # writes MATTERMOST_* to .env
    set -a; . ./.env; set +a
    export CREWLET_API_TOKEN="$CREWLET_API_TOKEN_FOUNDER"
    printf %s "$MATTERMOST_URL" | crewlet secrets set MATTERMOST_URL
    printf %s "$MATTERMOST_ADMIN_TOKEN" | crewlet secrets set MATTERMOST_ADMIN_TOKEN
    crewlet config import company.yaml # the block
    Then turn each agent on in the Mattermost integration’s Agents tab: the engine creates its bot and seals its token itself. The engine started before .env existed, so MATTERMOST_URL and the admin token reach it through the secret store, not its environment, which nothing changes while it runs. Running that stack on a remote host? Set MATTERMOST_PUBLIC_URL to the address your browser uses first; see The Site URL. The engine needs no public URL; the Mattermost server still needs to know its own. The import that ends each snippet makes the file the whole running document, so it is the right last step only while company.yaml is what the node runs. A company created in the dashboard’s org builder, or changed there since (a human seat added under Company › Structure included), is replaced by the file, and the write is refused 409 seat_held where the file drops a human seat somebody holds or is invited to. Connect chat from Company › Integrations then, as each page’s Setting it up from the dashboard section describes (Slack, Mattermost): it seals the credentials and re-activates the company as it stands.
  • Connect a work-item tracker: Jira, or the issue tracker of the code host you already run
  • Connect a knowledge backend, Confluence, so shared procedures surface in the executor’s ## Relevant knowledge block; publish version-controlled docs with crewlet confluence import
  • Connect a code host, GitLab or GitHub, and give each seat that pushes its code-host token in role.sandbox.env plus the git-auth setup step (code sandbox), so its executor’s run opens real merge requests under its own identity, in the container the first step above moved it into; the image needs git (and gh for GitHub pull requests)
  • Bring your team in: add a human seat for each person who is to sign in (Company › Structure › Add › Add human seat), then invite them onto it or create them on it from its page or its panel; every person holds a seat of their own. See Putting a person in the seat
  • Or host the repositories in Gitlet: add code: {backend: gitlet, repos: [...]} to the company file and push to <the API's address>/git/<name>.git with a token of your own (crewlet iam token -login mints one) as git’s password. Hosting Code on Gitlet walks through it, and it runs beside a GitLab or GitHub connection rather than in place of one
  • Fill in the founder seat you already have at the root: add the contact identities for each surface you connect (mattermost_user_id, atlassian_account_id, gitlab_username, …) so escalations land in your DMs and agents recognise your activity
  • Your config is already encrypted at rest: the keyring every node holds seals the entire company document into the DB as one opaque blob on every write, and that seal also lets a peer trust a revision it fetches. See Configuration § Secrets
  • Stop exporting a variable per credential: with that keyring in place, crewlet secrets set ANTHROPIC_API_KEY puts the value in the encrypted secret store, which the engine consults ahead of the process environment when resolving the ${...} references you already wrote, and when an api-key entry reads its harness’s own key variable. Provisioners can write there directly (crewlet gitlab provision … -secret-store), so a minted credential reaches the engine with no file to source and no shell to be in
  • Explore the Nimbus example, a seven-seat company with no outside account: Chatlet, Worklet, Doclet and Gitlet for its chat, work, pages and code, running on Claude Code with your Claude plan rather than an API key, every seat running that harness as its own agentic loop, in a direct box on the engine host (a first run on your own machine while its seats take work from you alone, like this page’s). It is the next step up from this page and needs nothing this page did not; every integration above adds on top of it, and every setting carries its reasoning in a comment
  • Add MCP servers so agents can reach your own systems
  • See the full configuration reference for all YAML options

Part of Crewlet. Generated from crewlet/crewlet main at 3f5565e.