Welcome to Stackbone

Stackbone is a platform for building AI agents and workflows in TypeScript and running them in a container you own. The CLI scaffolds the workspace. The SDK gives your code a database, file storage, models and third-party connectors, already wired. Stackbone Studio is the dashboard where you chat with what you built, watch every run, approve what needs a person, and connect tools such as Gmail or Slack.

Give your coding agent these docs.

https://docs.stackbone.ai/mcp serves this whole site over the Model Context Protocol. Your agent searches it and reads any page on its own, so it answers from the current docs instead of guessing. It is public: no key, nothing to install.

In Claude Code:

claude mcp add --transport http stackbone-docs https://docs.stackbone.ai/mcp

In any client that takes a JSON config (Cursor, Windsurf, Cline, Codex):

{
  "mcpServers": {
    "stackbone-docs": {
      "type": "http",
      "url": "https://docs.stackbone.ai/mcp"
    }
  }
}

More ways to hand over the docs, including plain text files for an agent with no MCP support.

The Playground, where you chat with the agent you just built.

Start faster with your coding agent.
Set up a new Stackbone workspace. Stackbone runs durable AI agents and
workflows on a modern TypeScript stack. Before you run any command, ask these
questions one at a time and wait for each answer, unless it was already given:

1. Workspace name? (default: "my-workspace")
2. What should the workspace start with? (required; one of: "agent",
   "workflow", "workflow-agent", "empty"). If the answer is not one of those
   four, ask again and list them.

There is no offline setup, so check the session first with `stackbone whoami`
and run `stackbone login` if it fails. Login prints a short code and confirms
it in the browser. There are no passwords.

Then run, from the folder that will hold the workspace:

  stackbone init <workspace-name> --with <choice>
  cd <workspace-name>

`stackbone init` scaffolds the workspace, registers it with the user's
organization, sets up the Stackbone agent skills for the coding agents the
user picks (pass `--agents claude-code,cursor,...` when there is no terminal
to answer the prompt), and installs the dependencies (`pnpm install`, or
`npm install` when pnpm is missing). With "empty" it writes only the shell, so
add the first piece afterwards with `stackbone add agent <name>` or
`stackbone add workflow <name>`.

Start the local runtime and leave it running in its own terminal:

  stackbone dev

It starts the agent and a small local database, then prints an "Open Studio"
link. Studio is the browser dashboard for the running workspace: the Catalog
lists what the workspace serves and the Playground is where you chat with an
agent.

A fresh workspace has no model provider yet, so the first start pauses and
prints a link to configure one (OpenRouter, OpenAI, and others) in Studio. The
running terminal picks up the choice on its own, with no restart. Tell the
user this is a one-time step.

Also point them at the four Stackbone agent skills, which teach a coding agent
the whole surface: https://docs.stackbone.ai/docs/home/get-started/coding-agents

What you'll do

Follow the pages in order:

  1. Install the CLI: get the stackbone command on your machine and sign in.
  2. Create your workspace: one command builds the folder that holds everything you make.
  3. Add your first agent: put an agent in it, start it, and chat with it.
  4. Add your first workflow: add a job that runs in steps and finishes on its own.
  5. What's next: where to go once it works.

What Stackbone gives you

Stackbone has two building blocks. Agents are for conversation: you send a message, the agent replies, and it keeps the thread so you can keep talking. Workflows are for jobs: a list of steps that finishes even if the process restarts halfway through. If you are not sure which one you need, read Agent or workflow?.

Both reach the same platform through one client, stackbone. Your code calls stackbone.database, stackbone.storage, stackbone.ai and so on; the runtime has already wired each one, so you build no clients and hold no credentials in code. Everything below works the same on your laptop under stackbone dev and in the container you deploy.

Build with

Feature What it gives you
Agents Multi-turn agents you write as one file: a model, a system prompt and the tools it may call. The runtime serves them over the OpenAI, Anthropic and AG-UI chat APIs, so any compatible client can talk to them.
Workflows Durable functions that run in steps. Each step runs once, saves its result and retries on failure, so a run survives crashes and redeploys and can wait for days.
Database A Postgres of the agent's own, reached through a typed Drizzle handle. You own the tables and the migrations; the connection string never appears in your code.
Retrieval Parse, chunk, embed, store and search documents on top of that same database, so an agent answers from your content.
Storage S3-compatible object storage for the files an agent reads and writes, with per-agent prefixes and signed URLs.
Integrations Stackbone Connect: an operator connects a provider once in Studio, your code calls it by name, and a broker mints a short-lived token per call. Connectors also fire inbound: an email arrives, a run starts.
Gateway One model client, stackbone.ai, for chat, embeddings and images. The operator picks who answers: OpenRouter, or any OpenAI-compatible endpoint.
API The HTTP surface a running workspace exposes: chat, the model catalogue, workflow runs and health. The runtime owns it; you write no server.
Memory Long-term memory across sessions. The surface is typed on the client today but not live yet, so read the page before you build on it.

Keep people in control

Feature What it gives you
Guardrails Rules an operator sets once in Studio and the runtime enforces on every chat turn and workflow run: block, mask or hold for a person. It takes no code on your side.
Governance Studio, the dashboard for a running box: follow every run, decide what waits for a person, set the rules the runtime enforces, and measure a change before you ship it.
Evaluation Score an agent against saved cases from Studio or from CI, and fail the build when a change makes it worse.

Run and operate

Feature What it gives you
Observability The logs your tools and steps emit, and a run timeline the platform records for every agent turn and workflow run.
Recurring jobs Work on a schedule, as a fresh workflow run per tick, so it shows up in the runs list like any other run.
Security and auth Callers prove who they are against the workspace over HTTP. Secrets sit encrypted outside your code and reach it at runtime.
Artifacts The files a run produces, kept in storage and handed out with a signed URL after the run has ended.
Deploy You run the container in your own cloud and register it from the browser. Stackbone provisions nothing.

What you can do with Stackbone

Some of what you can build, each with a worked example you can copy:

The smallest one, a plain greeter, is where the Examples area starts.

What's next

BUILT WITH ❤️ FROM CANADA AND SPAIN