The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Sapiom Js listing page.
⚠️ Beta Status: Currently in v0.x (beta). API may change before v1.0.0. Production-ready and actively maintained.
TypeScript SDK for building, running, and operating AI agents on Sapiom. Author agents as typed step graphs, call Sapiom paid tools (sandboxes, git repos, coding models, search, file storage, …) directly from your code, and ship them to the Sapiom engine from the CLI, your coding agent's MCP, or the Sapiom Studio desktop app.
This is a monorepo of focused packages. Install only what you need.
| Package | Version | Description |
|---|---|---|
| @sapiom/agent | The authoring contract: defineAgent, defineStep, directives (goto/terminate), and types | |
| @sapiom/tools | Typed client for Sapiom capabilities — the same tools your agents call, callable from your code | |
| @sapiom/cli | Command line: scaffold, validate, deploy, and schedule agents | |
| @sapiom/mcp | Local developer MCP server (sapiom-dev) — build & operate agents from your coding agent |
Agent Studio runs your coding agent (Claude Code or Codex) in a Sapiom-configured environment: MCP pre-wired, agent projects tracked, one-click deploy/run, and a live canvas for previews.
| Package | Version | Description |
|---|---|---|
| @sapiom/agent-studio | Agent Studio launcher — npx @sapiom/agent-studio@latest | |
| @sapiom/harness | The Agent Studio implementation — a CLI-launched local web app | |
| @sapiom/harness-desktop | Sapiom Studio desktop app (Electron) — ships as signed installers, not to npm |
Lower-level packages that power the stack above. Most users never import these directly, but they're published for advanced/host integrations.
| Package | Version | Description |
|---|---|---|
| @sapiom/agent-core | Pure, stateless functions for scaffolding, validating, and operating agents — shared by the CLI and MCP | |
| @sapiom/agent-runtime | Host-agnostic graph-walker runtime — one runtime, two hosts (server engine + local runner) |
New to Sapiom? The fastest path is the CLI or the developer MCP — both scaffold a working agent for you. See the examples folder for complete, runnable projects.
One command checks your environment, signs you in, and opens Agent Studio with your coding agent running in an embedded terminal:
Prefer a native app? Sapiom Studio is the one-click desktop host for the same experience — download installers (macOS, Windows, Linux) from GitHub Releases.
An agent is a typed graph of steps. Each step does work and returns a directive telling the runtime where to go next.
@sapiom/tools exposes the same capabilities your agents call as tools, typed
and authenticated to your tenant.
Add the local developer MCP so your coding agent can scaffold, test, deploy, and inspect Sapiom agents. In Claude Code:
@sapiom/mcpis the local developer surface (sapiom_dev_*). It is distinct from the remote Sapiom capability MCP that services paid tool calls — see docs/mcp-servers.md for which to use when.
This is a pnpm workspace monorepo.
We use Changesets for version management:
Contributions welcome! Please read our Contributing Guide first — it explains which changes can go straight to a pull request (focused bug fixes, documentation corrections, single-template additions) and which need a maintainer-agreed issue before you invest in them (new features, public API changes, new dependencies, cross-package work).
In short:
mainpnpm build, pnpm typecheck, pnpm lint, pnpm test)AI-assisted contributions are welcome but must be disclosed, reviewed, and validated by the contributor. For suspected security vulnerabilities, follow the Security Policy instead of opening a public issue.
MIT © Sapiom