Skip to content

Quickstart with the demo company

Last updated October 8, 2026

On this page

ok demo creates a small, ready-made software company on your own machine. You can sign in as any of its people, ask its agents for things, watch an agent's action wait for a person, approve it, and read the record of everything that happened. You need no account anywhere and no model key.

By the end of this page you have a working workspace and have followed two approvals from start to finish.

The demo is for development only. Local fakes stand in for every outside system (mail, billing, helpdesk, GitHub, analytics and the rest), so nothing leaves your machine. Its connections may reach any local service over plain http, anyone at the sign-in page can sign in as anyone with one click, and every API token is printed in your terminal. The demo listens on this machine only; never use its state file for real work. For a real company, see Install in five minutes.

A few terms used on this page:

Term Meaning
App A packaged part of the company (CRM, Support and so on) that brings its own records, agents, tools and pages. See Apps.
Agent A software worker that plans and acts for a person, inside the limits the company sets. See Agents.
Approval A person's yes or no on one action an agent wants to take. The agent's run waits (it is parked) until someone decides. See Inbox and approvals.
Brain The company's shared records, such as leads and tickets. See Brain.
Stub planner What answers in place of a model when no model key is set. See Without a model key, and with one.

Before you start#

You need the OrchKernel source, Node.js with npm (for the workspace's web pages) and a Rust toolchain. Build once, from the top of the source folder:

sh
(cd ui && npm ci && npm run build)   # builds the workspace's web pages
cargo build --release                # builds the binary, with those pages inside
alias ok=./target/release/orchkernel

The binary is called orchkernel; the alias lets you type ok as this guide does. Build the web pages first: a binary built without them still runs, but the browser shows only "UI not built. Run npm run build in ui/."

Create the demo company#

sh
ok demo

This creates a folder orchkernel-demo in the current folder (use ok demo --dir <path> to put it elsewhere) and prints what it made:

text
created orchkernel-demo/secrets.key (key 1a2b3c4d, and a webhook signing secret): back it up apart from the state
Created the demo company in orchkernel-demo (development only).

  people     ada (admin) and fiona, sam, alice, maya, tom, pat, erin, eli
  teams      Sales, Support, Product, Engineering, Founder's office
  apps       crm, sales, marketing, support, support-ops, product, product-ops, tech, founder, context
  records    19 sample records: customers, leads at every stage, open tickets,
             and ticket T-1042 asking for a refund of 250.00 (over the 100.00 cap)
  tools      12 connections, each to a local fake; no real account is used

Start it:

  ok demo serve --dir orchkernel-demo

It ends by pointing at docs/demo.md, a file in the source folder. This page covers the same steps.

The folder holds state.db (the whole company) and a plans folder (see For developers).

Running ok demo again in the same place is refused: "Error: orchkernel-demo already holds a demo company; pass --force to start over". ok demo --force throws the old company away and creates a fresh one.

What is in the demo company#

People and teams#

Id Name Role Team Reports to
ada Ada Park Admin none
fiona Fiona Reyes Founder, leads the Founder's office Founder's office
sam Sam Ortiz Sales lead Sales Fiona
alice Alice Chen Sales rep Sales Sam
maya Maya Patel Support lead Support Fiona
tom Tom Becker Support agent Support Maya
pat Pat Kim Product manager, leads Product Product Fiona
erin Erin Walsh Engineering lead Engineering Fiona
eli Eli Novak Engineer Engineering Erin

Ada governs the company: she alone sees Apps and Setup in the sidebar, and People with everyone in it, and she approves what the rules send to an admin. She does not read the Sales or Support records herself. The team leads (Fiona, Sam, Maya, Pat and Erin) see People too, with their own team only: they invite people into it (Ada approves each invite) and deactivate or reactivate its members.

Apps and agents#

Every department app is enabled and healthy: CRM, Sales, Marketing, Support, Support operations, Product, Product operations, Tech, Founder and Context. Each app's team is bound to the company team of the same name; Marketing's agents, the Marketing Lead among them, work in the Sales team. Directory lists 37 agents, all at the Standard trust tier, including the built-in Coordinator, which anyone may ask to combine several agents' answers.

Records#

Collection What is there
Leads 7, at every stage. Northwind Traders and Contoso Health are won (the customers). Litware is "contacted" and waiting on a follow up from Alice.
Contacts 2: Rosa Diaz (Northwind) and Dana Brooks (Litware)
Tickets 5, four of them open, including T-1042
Roadmap items 3: Single sign-on (SAML), Faster CSV export, Mobile app
Feature requests 1: SAML single sign-on, 7 votes
Incidents 1: Export workers saturated (sev2, mitigated)

Who reads what follows the apps' rules, so the same question gets a different answer depending on who asks:

Person Leads Contacts Tickets Incidents
sam (sales lead) all 7 2 no no
alice (sales rep) her own 4 2 no no
maya, tom (Support) no no all 5 1
pat (Product) no no all 5 no
erin, eli (Engineering) no no no 1
ada, fiona no no no no

Everyone reads the roadmap items and the feature request.

The refund over the cap#

Ticket T-1042: Northwind was charged twice for September and asks for 250.00 back. The Support operations app lets an agent refund up to 100.00 on its own; anything over that waits for an admin, whatever the agent's trust tier. So an agent's refund on T-1042 always stops for Ada.

Connections and triggers#

A connection is the company's link to one outside tool server. There is one per tool server, named demo ads, demo apollo, demo billing, demo cms, demo ga4, demo github, demo google, demo gsc, demo helpdesk, demo pagerduty, demo sentry and demo stripe. None has a secret. When the demo runs, each points at a local fake that answers like the real system would.

Every trigger (a schedule, a webhook or a change to the data that starts an agent by itself) is Off, so nothing runs until someone asks. You can turn one on later (see Pause and resume an app).

Start the demo#

sh
ok demo serve

If you created the demo elsewhere, add --dir <path>. The server listens on 127.0.0.1:8080; change it with --bind, for example --bind 127.0.0.1:8811. (The OK_BIND setting is not read here.)

The terminal shows demo: 12 local fakes started; 12 connections point at them and OrchKernel serving on http://127.0.0.1:8080, and prints:

text
OrchKernel demo (development only: local fakes stand in for every tool)

  Workspace   http://127.0.0.1:8080  (pick a person on the sign-in page)
  Model       none configured: a stub planner answers the walkthrough's asks.
              Set ANTHROPIC_API_KEY (or an llm.yaml) and restart for a real model.
  Egress      development mode: connections may reach loopback over plain http,
              so an admin can point one at any local service.

API tokens, for curl and scripts (valid 7 days; the next start revokes these
and prints new ones):

  ada    admin                                orchk_34ab…
  fiona  founder, leads the Founder's office  orchk_4838…
  sam    sales lead                           orchk_4b0d…
  alice  sales rep                            orchk_a0ef…
  maya   support lead                         orchk_8d1c…
  tom    support agent                        orchk_c3d4…
  pat    product manager, leads Product       orchk_22e3…
  erin   engineering lead                     orchk_cb52…
  eli    engineer                             orchk_495f…

followed by a short list of first things to try and "Stop with Ctrl+C. Your changes stay in the state file." Each token is longer than shown here.

Above the banner it also prints "No admin has a password yet. Open a link to set one:" with a link for ada. You do not need it to try the demo: the Demo people list signs you in without a password.

  • Keep this terminal open. Ctrl+C stops the demo. Everything you do is kept in orchkernel-demo/state.db for the next start.
  • The demo listens on this machine only. A --bind that is not a loopback address is refused: "the demo signs people in with one click, which is safe only on this machine; bind 127.0.0.1".
  • Every start issues new API tokens and revokes the ones the previous start printed. They are for curl and scripts (see The API); nobody signs in to the workspace with a token.
  • If the address is taken, the start fails with "Error: Address already in use (os error 48)" (the number depends on your system), but only after it has printed the banner and the tokens. Those tokens are no use. Start again with another --bind.
  • Model says whether a real model answers. With no key, the stub planner answers the asks on this page.

Sign in#

  1. Open the Workspace address in a browser. The sign-in page shows the company's name and, above the email and password form, a Demo people list: each person's name and role, one button each.
  2. Under Demo people, choose Maya Patel. You are signed in at once, with a real session, as the demo's people have no passwords.
  3. You land on Threads. The sidebar shows New conversation, the search box, Inbox, Threads, Work and Curation, your recent threads, the app pages under Apps (for Maya: Context, Engineering, Marketing, Product, Support), and under Company: Brain, Knowledge, Directory, Governance, People (her Support team only, as she leads it) and Events. At the bottom left: Maya Patel, her address maya@orchkernel-demo.example, and the Account menu ("...") with Profile, the theme and Sign out.
  4. Click Brain, then Tickets: "5 rows you can read · as Maya Patel", with T-1042 at the top and its refund of $250.00.

To become someone else, choose Sign out in the Account menu and pick another person under Demo people. On a phone, the sidebar is behind the menu button at the top left and the inbox is the icon at the top right, with the unread count beside it.

Everything after sign-in works as on a real server, so the demo can show it:

  • Your profile (click your name at the bottom left), section Sign-in: Password, Change (a demo person has none, so leave Current password empty the first time); Two-step sign-in, Set up (scan the code with an authenticator app; the demo keeps a secrets key of its own in orchkernel-demo/secrets.key for it); your sessions; and API tokens, which are for scripts and the API only.
  • A lead's people panel. As Maya, open People: Tom Becker and Maya herself. Press Deactivate on Tom's row, give a reason and confirm: Tom is Deactivated, his sessions end and he leaves the Demo people list. Press Reactivate to bring him back.
  • Invites. As Maya, press Invite to Support: the invite waits for Ada, whose approval reads "Invite () as support_agent to Support". The demo sends no email (its people's addresses are on orchkernel-demo.example), so once Ada approves, the row says "Not sent: copy a link from here": press Copy new link on it (Maya's row or Ada's drawer) and open the link in a private window.
  • As Ada, People lists everyone; click a person for their drawer (sign-in links, two-step reset, sessions, tokens, deactivate, offboard).

Sensitive changes (a new password, two-step, a new token, sign-in links for others, the email settings) need a sign-in from the last ten minutes. A demo person has no password to confirm with, so after ten minutes the Confirm it is you sheet says to sign out and pick yourself again under Demo people; then make the change straight away.

Development mode. ok demo serve --dev-auth (and ok serve --dev-auth) shows the same Demo people list, and the server also trusts the x-ok-actor header for scripts. Anyone who can reach the server can then act as anyone, so --dev-auth refuses any address but loopback.

Your first 30 minutes#

Follow these in order: later steps use what earlier ones did.

1. Ask an agent (3 minutes)#

As maya:

  1. Click Threads. Under Talk to an agent, Support · your team lists the Support team's agents: Churn-risk watcher, Knowledge-base writer, QA reviewer, Support Agent, Triage. No team lists the Coordinator.
  2. Click Support Agent. A page "New conversation with Support Agent" opens. The agent is already in the message box as a chip, and the line under the box reads "Send runs Support Agent."
  3. Type What is open? and press the send button, the arrow at the right of the box (its label reads "Send and ask Support Agent"), or Ctrl+Enter (⌘+Enter on a Mac).
  4. The conversation shows your message, then the agent's answer: a table of the four open tickets (T-1042, T-1043, T-1044, T-1045), with T-1042's refund as $250.00, then the folded Details line marked Done. The details panel (the panel button at the top right) lists the participants and the task, marked Done.

Clicking an agent you already have a conversation with opens that conversation again instead of a new one.

Now sign out and sign in as alice. Click Sales Assistant, type Show my pipeline and send it. You get Alice's four leads only (Contoso Health, Tailspin Toys, Litware, Adventure Works). The agent acts for Alice and reads only what she may read; Sam asking the same question sees all seven.

More on conversations and threads: Asking an agent and Threads.

2. Watch a governed write wait (5 minutes)#

Still as alice, in the same conversation with the Sales Assistant:

  1. Type Email a follow up to my contacted lead and send it.
  2. A notice says "Sales Assistant needs your approval: Send email". The run's line reads "Waiting for you to approve “Send email”", with the time it has taken and Stop. Below it is an approval card headed Waiting for you, Send email: "Sales Assistant asks to send email.", To dana@litware.example, Subject "Following up on our demo", and the email's text. Under it, the rule that held it: "Agents never send email without the rep approving the draft". Nothing has been sent. In the right-hand panel the task reads Parked and Approvals lists the card as Pending.
  3. Open Why am I asked?. It lists every check the action passed (Alice's delegation, no pause or kill switch, the skill, the budgets) and the one that stopped it: "A CRM rule requires approval: Agents never send email without the rep approving the draft", then "Alice Chen would be asked, and the run would wait until they decide" and "The policy asks the person it acts for."
  4. Click Inbox in the sidebar if you like: the same card sits under Waiting on you. Come back to the conversation with Threads, then Conversation with Sales Assistant under Your threads.
  5. Press Approve on the card.
  6. The card turns Approved ("Approved by Alice Chen"), and the agent carries on: its answer shows Next follow up three days from today, Sent msg-18c2f1a9 (the message id from the mail fake) and To dana@litware.example. The task reads Done.

To see the other outcome, ask the same thing again and press Reject on the new card. A box opens: "Say why, so the agent and the requester know". Type a reason if you like and press Confirm reject. The card turns Rejected ("Rejected by Alice Chen"), the agent answers "Nothing was done.", its Details line marked Rejected, and the task reads Cancelled. No email is sent.

3. Approve the parked refund as Ada (5 minutes)#

Sign out and sign in as maya.

  1. Threads, then Churn-risk watcher under Talk to an agent.
  2. Type Northwind wants a refund for the double charge and send it.
  3. The watcher works in rounds: it reads ticket T-1042, looks up Northwind's account in the billing fake, then asks to refund 250.00. After a few seconds the run's line reads "Waiting for Ada Park to approve $250.00", and an approval card headed Waiting for Ada Park appears: Issue a refund or credit, "Churn-risk watcher asks to issue a refund or credit of $250.00 on behalf of Maya Patel.", Amount $250.00, Invoice inv-2026-09-1042, Reason "Double charge on the September invoice (ticket T-1042)", and the rule: "Goodwill credits by agents over the cap of 100.00 in the account currency per call need an admin, whatever the trust tier". Below it: "An admin (Ada Park) decides". No notice pops up for this one; the card simply appears in the conversation.
  4. Maya has no Approve button. She leads the team the agent works for, but the rule wants an admin. Why does this need approval? shows the same kind of checks as before, ending "A Support operations rule requires approval: ...", "Ada Park would be asked, and the run would wait until they decide" and "The policy asks anyone with the admin role."
  5. Sign out and sign in as ada. The sidebar's Inbox shows a count.
  6. Click Inbox. Under Waiting on you is the same refund card, headed Waiting for you, its button reading Approve $250.00. Press it.
  7. Because this moves money, the card asks once more "Issue a refund or credit of $250.00? It runs as soon as you approve." with Cancel and Approve $250.00. Press Approve $250.00.
  8. A notice says Approved and the card leaves the inbox.
  9. Sign in as maya again and open Conversation with Churn-risk watcher under Your threads. The card reads "Approved by Ada Park", and the watcher's answer follows: "Refunded after an admin approved it.", Amount $250.00, Invoice inv-2026-09-1042, Refund re_3Rk0a1Lq (the billing fake's refund id). The task reads Done.

Had Ada pressed Reject, no refund would be made and the run would end saying so. More in Inbox and approvals.

4. Read the event log and replay the run (5 minutes)#

As ada:

  1. Click Events. This is the append-only log of everything that happened, newest first; nothing in it can be changed. The line above the list reads "Audit chain: N events, not checkpointed yet", where N is a few hundred by now.
  2. In Type, choose Approval requested. Two rows: "Approval asked of Ada Park for tool.call(support-ops.billing.refund)" and "Approval asked of Alice Chen for tool.call(gmail.send)". (If you tried Reject in step 2, there is a third row for Alice.)
  3. Choose Tool called. Three rows: "support-ops.billing.refund called by Churn-risk watcher", "support-ops.billing.account called by Churn-risk watcher" and "gmail.send called by Sales Assistant". Click a row to see its details: the event number, the time, who did it, the raw type (tool_called) and its data.
  4. Click Work. It opens on Open tasks; click the Runs tab (its count reads 4, more if you asked other things). Every run is listed with its state, agent, task, model, steps, cost, tokens and start time.
  5. Click the Churn-risk watcher run (task "Northwind wants a refund for the double charge"). A panel opens: "Churn-risk watcher acting for Maya Patel", then the Trace: Used the skill Churn-risk watching, each Planned the next step, Read Tickets: 1 row, Billing account Ok, Asked for approval, Approval Approved, Issue a refund or credit Ok, a Round line after each round, Kept 1 lesson, and the Output.
  6. Open Replay (raw events) at the bottom. This is the run rebuilt from the event log alone: run_started, each policy_evaluated decision (the refund's reads require_approval with the reason rule support-ops-refunds-need-admin: ...), tool_called, approval_requested, run_parked, approval_resolved by ada, run_resumed, the refund's tool_called and run_finished.

With the stub planner, its planning steps still show as model calls: the events name the model mock-default, and the run counts tokens but costs $0.00. More in Events and the audit log.

5. Pause and resume an app (5 minutes)#

As ada:

  1. Click Manage apps, at the end of Apps in the sidebar. It opens on the Catalog tab. Click the Enabled tab: all ten apps read Enabled and Ok.
  2. Click Support operations. Its page shows the state, health, version, who set it up and what it requires (Support).
  3. Press Pause. A confirmation says "Pause Support operations? Its agents, tools and triggers stop and its pages hide; data and settings stay." Press Pause. The state turns Paused and the button becomes Resume.
  4. Sign in as maya and open Threads. The Churn-risk watcher, Knowledge-base writer and QA reviewer chips read paused and cannot be clicked, and the Support operations page is gone from the sidebar. In her existing conversation with the watcher, the agent's chip is grayed out and the send button stays grayed out ("Churn-risk watcher is paused by an admin. Remove the chip to post instead."). The Support Agent and Triage (the Support app) still work.
  5. Back as ada, open Support operations again and press Resume. There is no confirmation; the state returns to Enabled and Maya's chips work again.
  6. On the same app page, open the Automation tab. It lists the app's four triggers, all Off: Kb morning (weekdays at 9:00), Qa morning (weekdays at 8:00), Churn on ticket change (a change to tickets) and Churn sweep (weekdays at 8:30). Change automation opens a list with a checkbox per trigger and Save. With no model the stub planner answers those runs too; with a real model they cost money, which is why the demo starts with them off.

The Catalog tab lists every app the company could enable; in the demo each one already says Enabled. More in Apps.

More to try#

With the stub planner these show the screens but not real answers, as the stub knows none of these asks; with a model they work in full.

Try Where it is explained
As sam, ask the SEO Analyst and the Analytics Analyst in one message: pick both into the message box and choose how they answer (Combined, Each answers or One leads) Asking several agents together
Set an ask to run every Monday: + under the message box, then Repeat this… Repeats
Attach a file with the paperclip, paste a screenshot, or drop a file on the conversation Files
Stop a run while it works: Stop on its line in the conversation Asking an agent

Without a model key, and with one#

No key: the stub planner#

With no key, a stub planner answers instead of a model. It is not a model: it answers the asks on this page with fixed plans (the open tickets, the pipeline, the follow up email, the refund). Anything else gets a note instead of an answer. For example, Pat asking the Product Agent "What should we build next quarter?" gets "No model is configured, so the demo's stub planner answered. ...", which names the keys to set, and the task still reads Done. The governance is real either way: the policy checks, the approvals, the fakes' calls and the event log are the same as with a model.

Changes to skills and playbooks run evals, which need a model. Without one, an eval the stub cannot answer shows as not run, never failed, and the change waits. See Changing a skill or playbook.

With a key#

  1. Stop the demo (Ctrl+C).
  2. Set a key, for example export ANTHROPIC_API_KEY=... (or OPENAI_API_KEY, GEMINI_API_KEY, OLLAMA_HOST), or put an llm.yaml in the folder you start from.
  3. Run ok demo serve again. The Model line now names the default model and where it came from ("..., configured from ..."). The server also checks each key in the background and prints a warning for one that is refused.
  4. Pick a person again and ask anything: the agents plan for real.

Or, without stopping it: sign in as Ada, open Models in the sidebar, pick a provider, enter its key, Test, and Connect. The next ask uses the model; see Models. (The demo's company is from before the first-run wizard, so it never shows the wizard; its Models page says "This demo answers with a built-in planner. Connect a model for real answers." while the stub answers.)

What changes and what does not:

Stub planner Real model
Which asks work The ones on this page Any
Exact steps and wording Fixed Vary from run to run
Refund over the cap waits for an admin Yes Yes
Agent's email waits for the rep Yes Yes
Cost Nothing ($0.00 on every run) Model tokens, shown per run under Work

The demo's tickets are restricted customer data, and a model only sees data up to the level it is allowed. From the environment, Anthropic's models and Ollama may take restricted data; the built-in OpenAI and Gemini models stop at confidential, so with only one of their keys the Churn-risk watcher's refund ask cannot go on: its card says in a sentence that no model the company has set up is cleared for that kind of data, with Fix this for an admin. In an llm.yaml, give the model max_sensitivity: restricted. See When no model may take the data and Models.

Starting over and moving on#

You want to Do
Stop Ctrl+C in the terminal running ok demo serve
Carry on later ok demo serve again, and pick a person again. Your threads, approvals and runs are still there.
Throw everything away Stop, then ok demo --force, then ok demo serve
Try one real system See Connections and integrations. ok demo serve re-points only connections that still point at 127.0.0.1, so one you point at a real system stays as you set it.
Set up a real company Do not start from the demo. Start ok serve in an empty folder (or run ok init first): it prints a link that creates the first admin and opens the first-run wizard, which names the company, connects a model, turns on search by meaning, enables apps and invites people. See Setting up a company and Install in five minutes.

Not possible yet#

  • Running the demo for other people over a network. It is for one person on one machine: the demo's one-click sign-in works on this machine only.
  • Signing in to the demo's workspace on another machine. A demo file served by plain ok serve has no picker and no passwords; its people would need setup links like any company (see Setting up a company).
  • Choosing which apps or people the demo company has. Use ok init with a blueprint for that.

For developers#

The command line on the demo#

Commands that only read (app list, brain query, runs, replay and the other lists) work while the demo runs: they read a snapshot of the state file and never write it. Commands that change something are refused while the server runs (exit status 75, "The server is running on ..."): stop the server first, or send them to it with --server http://127.0.0.1:8080 and a printed API token. Name the file and a person:

sh
ok --state orchkernel-demo/state.db --as ada app list
ok --state orchkernel-demo/state.db --as maya brain query tickets
ok --state orchkernel-demo/state.db --as ada runs
ok --state orchkernel-demo/state.db replay --run <run-id>

app list prints one line per app (support-ops enabled ok bundled Support operations); runs lists each run's id, state, agent, steps and cost, which gives you the id for replay.

orchkernel-demo/plans/ holds the walkthrough's plans as JSON (follow-up.json, leads.json, tickets.json). In developer mode (add ?dev=1 to the workspace address) a conversation has an Explicit plan button where you can paste one; ok ask --plan <file> takes one too.

The API#

Every printed API token works as a bearer token against /api:

sh
curl -s -H "Authorization: Bearer $MAYA_TOKEN" \
  -H 'content-type: application/json' -d '{}' \
  http://127.0.0.1:8080/api/brain/collections/tickets/query

returns Maya's five tickets as JSON; the same call with Ada's token answers 403 with {"error":"denied","message":"brain: access denied: ada may not read tickets"}.

Asking a paused app's agent through the API (POST /api/threads/<id>/ask with {"agent":"churn-watcher","text":"..."}) answers 403 denied: "policy denied run: kill switch engaged: support-ops is paused". The message and its task are still recorded in the conversation, though, and the task runs as soon as the app is resumed.

GET /api/health answers {"dev_auth":false,"ok":true,"password_sign_in":true}, with dev_auth: true when the server was started with --dev-auth. POST /api/auth/demo with {"actor":"maya"} is the picker's call: it answers a session cookie from this machine while the demo runs, and 404 anywhere else. See the CLI and API reference.