Substructure
just TOML and webhooks
Working when we checked on .
What is Substructure?
Substructure (subs) is an agent harness that runs LLM agent loops locally, in server/client mode, or on a hosted cloud engine. It targets developers and teams building agents their whole team can use, especially Slack-based bots. Agents are defined in a single subs.toml file with no code, connect to MCP servers for tools, and support bring-your-own keys for Anthropic, OpenAI, or OpenRouter. The engine handles Slack routing, subagents, human approval steps, durable sessions, and webhook workers for custom control of the agent loop. It can also be self-hosted on the user's own servers.
Substructure pricing
Pricing model: Freemium
Free: 250 credits for 30 days; Paid: $0.02 per credit (one turn = one credit), no subscription
Substructure pros
- Free tier: 250 credits for 30 days, no card needed
- Bring your own LLM key for Anthropic, OpenAI, or OpenRouter
- Self-hosting available with no account or limits
- MCP connectors with authorization handled by the engine
- Webhook workers allow full custom control of the agent loop
- Durable sessions: every step is saved before it runs
Substructure cons
- Users must supply and manage their own LLM API keys
- Hosted credits expire (free credits last 30 days)
- Slack integration requires setting up a Slack app
- No information about enterprise support or SLAs
Frequently asked questions about Substructure
What is Substructure?
Substructure (subs) is an agent harness for the cloud. It runs an unprivileged agent loop with no system access, uses MCP servers for tools, and can run locally or as a client and server.
Who is Substructure for?
It is for developers and teams who want to build and deploy agents their whole team can use, such as Slack bots connected to tools like GitHub, Linear, Notion, or Sentry.
How much does Substructure cost?
Every account starts with 250 credits free, good for 30 days. After that, credits cost $0.02 each, with one turn costing one credit. There is no subscription and no overage charges.
What is a turn?
A turn is one message to an agent. It covers everything the agent does to answer that message, including every model call, tool call, and subagent it starts.
Which LLM providers does Substructure support?
It supports Anthropic, OpenAI, and OpenRouter via bring-your-own key. Alternatively, calls can be made in a webhook worker so the engine never sees the key.
Can Substructure agents work in Slack?
Yes. Agents can be mentioned in channels or reached by DM, with the thread serving as the session. Different channels can be routed to different agents.
Can Substructure be self-hosted?
Yes. The engine can run on a laptop during development and on your own servers in production, with no account and no limits. The hosted version exists for convenience.
How does Substructure connect to external tools?
You declare MCP servers in subs.toml and the engine handles authorization, reads the tools they offer, and runs every call. Connections can be shared or scoped per user.
Can agents wait for human approval?
Yes. An agent can stop and wait for a person, then continue. A waiting agent uses no compute, and in Slack approval appears as a button.
Is data durable across crashes or deploys?
Yes. Every step is saved before it runs, so a deploy, a crash, or a reconnect loses nothing. Durable sessions include a full event log.