
documentation
guides, references, and everything you need to build.
all pages
What is inference shell?
inference shell is an AI workspace where agents can actually do things.
Web app tour
A quick look at what you'll find in the web app.
Your First Agent
Create an agent in 5 minutes.
Concepts Overview
Everything in inference shell connects to help you get work done with AI.
Apps
Apps are tools that do one thing well.
Tasks
A task is what happens when you run an app.
Flows
Flows chain multiple apps together.
Agents
Agents are AI assistants that use tools.
Workers
Workers are computers that run your tasks.
Agents Overview
Create AI assistants that plan, use tools, and get things done.
Creating an Agent
Step-by-step guide to creating an agent.
System Prompts
The system prompt defines your agent's personality and behavior.
Adding Tools
Tools extend what your agent can do. There are seven types of tools.
Sub-Agents
Agents can delegate to other agents. Sub-agents are just another type of tool.
Chatting
How to interact with your agent.
Webhooks
Connect your agent to external services via webhooks.
Apps Overview
Tools that do one thing well.
Browsing the Grid
Find apps to run or add to agents.
Running an App
How to run an app from the workspace.
Flows Overview
Visual workflows that chain apps together.
Creating a Flow
Build a multi-step workflow visually.
Connecting Nodes
Wire data between apps in your flow.
Deploying as App
Turn your flow into a reusable app.
CLI Setup
Install the command-line tool for creating apps.
Creating an App
Scaffold a new app with the CLI.
App Code
Your app's logic lives in an entrypoint file — inference.py (Python) or src/inference.js (Node.js).
Configuration
The inf.yml file defines app settings and resource requirements.
Deploying
Push your app to inference shell.
Authentication
How to authenticate with the API.
Why Private Workers?
Reasons to run on your own infrastructure.
Installing the Engine
Set up private workers on your hardware.
Configuration
Configure workers on your engine.
Using Private Workers
Run tasks on your own hardware.
Image Generation
Generate images with AI models.
Audio Transcription
Convert speech to text with Whisper.
Content Pipeline
Build a flow that creates social media content from a prompt.
Data Processing
Process and analyze data with AI.
Multi-Agent System
Build agents that work together.
Introduction
> inference shell is an AI workspace where agents can actually do things. Put agents in charge of the busywork—they plan steps, pick the right tools or flows, and even generate small UI widgets when...
Vault Overview
Secrets and credentials for connecting external services, organized in vaults.
Environment Variables
Store encrypted API keys and credentials.
Credentials Overview
Managed connections to external services.
Google Service Account
Connect Google Sheets, Docs, and Drive using a service account.
Google OAuth
Connect your personal Google account for Gmail, Calendar, and Drive.
X.com
Connect X.com (formerly Twitter) to your agents.
Slack
Connect Slack to your agents for messaging, channels, and events.
Discord
Connect Discord to your agents for messaging, events, and bot interactions.
X.com Integration
Build apps that interact with X.com (Twitter).
Python SDK
Python SDK for inference shell agents and apps.
JavaScript SDK
JavaScript/TypeScript SDK for inference.sh agents and apps.
Google Cloud Platform
Connect your own GCP project to use Vertex AI, BigQuery, Cloud Storage, and other GCP services with your own quotas and billing.
What is a Runtime?
inference shell is an agent runtime; the infrastructure layer that executes your agent code with built-in solutions for the hard operational problems.
Durable Execution
durable execution means your agent's state checkpoints after each step. if a connection drops, a process restarts, or a tool times out, execution resumes from the last checkpoint instead of starting o...
Observability
every agent running on inference shell is automatically traced. no configuration, no instrumentation code, no separate products.
Human-in-the-Loop
human-in-the-loop lets you add approval gates to agent actions with one flag. the agent pauses, shows what it wants to do, and waits for confirmation before executing.
Tool Orchestration
inference shell provides hundreds of pre-built integrations as tools for your agents. oauth flows, token refresh, and credential management are handled by the platform.
Setup Parameters
Setup parameters configure an app's initialization steps. Modifying these parameters triggers a full restart (re-running setup()).
Multi-Function App
Apps can define multiple entry points to support different modes of operation within the same container context. This reduces cold starts and resource duplication.
Graceful Cancellation
Apps typically process requests until completion. However, users may cancel long-running tasks. Implementing graceful cancellation lets your app stop at a clean point, release resources, and keep its ...
Extend Overview
Build and deploy your own apps on inference shell.
API & SDK Overview
Programmatic access for developers.
Secrets
Secrets allow your app to securely access API keys and sensitive values. Users provide their own secrets which are encrypted and injected at runtime.
Credentials
Credentials give your app keys and connections that belong to an external service: an API key for Acme, an OpenAI key, a Google sign-in. Each user supplies their own, and the platform passes them to y...
Output Metadata
OutputMeta enables usage-based pricing by reporting what your app processes and generates.
Best Practices
Performance optimization and coding patterns for inference shell apps.
Troubleshooting
Common issues and solutions for inference shell apps.
Widgets Overview
Learn how to design widgets in your agent experience.
Widget Schema
Complete type definitions for the widget system.
Widget Actions
Trigger actions on the backend from user interactions in your widgets.
Card
A bounded container for widgets. The Card is the primary container for all widget content.
Text
Displays plain text with optional styling variants.
Badge
A small label for status or metadata.
Row
Arranges children horizontally with configurable gap.
Col
Arranges children vertically with configurable gap.
Button
A flexible action button that triggers widget actions.
Input
Text input field for collecting user input.
Select
Dropdown single-select input for choosing from predefined options.
Checkbox
Binary selection control for boolean values.
Image
Displays an image with optional alt text.
Markdown
Renders markdown-formatted text with full styling support.
Box
Flexible container for layout and surface styling with full control.
Spacer
Flexible space to separate content within a layout.
Divider
Separate content with a thin line.
Form
Layout container optimized for form controls and submission.
Title
Section headings with scalable sizes and weights.
Caption
Supplemental text for descriptions, hints, or metadata.
Label
Accessible label for a form field.
Textarea
Multi-line text input control for longer form content.
RadioGroup
Choose a single option from a set of mutually exclusive options.
DatePicker
Select a date from a calendar popover.
Icon
Visual glyphs for actions and status indicators.
Chart
Render simple bar, line, and area charts from tabular data.
Transition
Animate layout changes for a single child component.
Coding Agents
Build inference shell apps with AI coding assistants like Claude Code, Cursor, or Windsurf.
REST API
Direct HTTP access to inference shell.
Tasks
Run apps and manage tasks.
Files
Upload files for use in tasks.
Agents
Chat with AI agents via REST. For SDK helpers (sendMessage, run, streaming), see the Agent SDK.
Streaming
Real-time updates via Server-Sent Events (SSE).
SDK Overview
The official inference shell SDKs for Python, JavaScript/TypeScript, and Swift.
Running Apps
Execute AI apps on inference shell.
Streaming
Real-time progress updates via Server-Sent Events.
Files
Upload and download files programmatically.
Agent SDK Overview
Build and interact with AI agents programmatically.
Template Agents
Use existing agents from your workspace.
Ad-hoc Agents
Create agents on-the-fly without saving to workspace.
Building Tools
Define tools for agents using the fluent builder API.
Client Tools
Tools executed by your code via a handler function.
App Tools
Run inference shell apps as agent tools.
Agent Tools
Delegate complex tasks to other agents.
Webhook Tools
Call external HTTP endpoints as agent tools.
Internal Tools
Built-in tools for planning, memory, widgets, and sub-agent completion.
Approval Settings
Human-in-the-loop (HIL) for tool execution.
Agent Streaming
Handle real-time message updates and tool calls.
Server Proxy
Protect your API key in frontend applications.
Vercel
Deploy inference shell apps to Vercel with automatic API key management.
Next.js
Set up the inference shell proxy in Next.js with App Router or Page Router.
Express
Set up the inference shell proxy in Express.js applications.
Hono
Set up the inference shell proxy with Hono for edge and serverless deployments.
Remix
Set up the inference shell proxy in Remix applications.
SvelteKit
Set up the inference shell proxy in SvelteKit applications.
Sessions
Sessions let you lease a worker for stateful, multi-call interactions.
Multi-Function Apps
Expose multiple entry points from a single app to share resources and reduce cold starts.
Sessions
Complete guide to using sessions for stateful, multi-call interactions.
Stateful Sessions
Practical patterns for using sessions in real applications.
Skills
Load context on-demand instead of cramming everything into the system prompt.
Skills
Reusable context and instructions for AI agents — loaded on demand, not crammed into prompts.
Creating Skills
Create skills directly on inference shell — no CLI or local tooling required.
The Skill Registry
Browse, search, and share skills on inference shell.
Adding Skills to Agents
Attach skills to your inference shell agents so they can load context on demand.
Using with Other Agents
Skills on inference shell follow the Agent Skills open standard. This means skills you create here work with Claude Code, Cursor, Windsurf, and any tool that supports the spec.
Structured Output
Get typed JSON responses from your agent using outputschema.
Polling Transport
Use polling instead of SSE for environments that can't maintain long-lived HTTP connections.
Call Tools
Make HTTP API calls as agent tools. Call tools let agents interact with REST APIs directly — the agent sends a request and gets the response back.
Connector Tools
Call tools on connected MCP servers as agent tools.
Connectors Overview
Connect your agents and workflows to external services through MCP servers.
Browsing & Connecting
Discover MCP servers and set up connections.
Using Tools
List, inspect, and call tools on connected MCP servers from the CLI.
Agent Tools
Add connected MCP server tools to your agents so they can interact with external services.
MCP Server
Connect Claude Code, Cursor, or any MCP client to inference shell and use all platform capabilities as tools.
Skills
Manage and access skills via REST.
Knowledge
Manage knowledge entries — observations, references, preferences, and more.
Search
Search helps you and your agents find apps, skills, knowledge, and published docs across the platform.
Extending Apps
Build and deploy your own tools.
Usage-Based Pricing
Store apps can charge per run using CEL expressions evaluated against task data and output metadata.
Flow Runs
Execute saved flows programmatically and track multi-step orchestration runs.
Sessions
Manage stateful app sessions outside of POST /run.
Apps
Manage your apps and versions via REST.
Search
Hybrid keyword and semantic search across apps, skills, knowledge, agents, flows, MCP servers, and published pages.
Instance Types
Browse GPU instance types, hourly pricing, and daily price history across cloud providers. These endpoints power comparison views and GPU price charts and are available without authentication.
Engines
Manage private inference engines that run workers on your hardware. Use these endpoints to list engines, inspect status, and perform safe restarts without dropping in-flight tasks.
Managing Engines
Drain, update, and restart engines without interrupting in-flight tasks.
Entitlements
List your workspace's plan limits and feature flags. Entitlements are enforced when you create API keys, connectors, knowledge bases, private apps, upload files, or run tasks. Most limits are checked ...
Billing
Manage workspace balance, credit top-ups, saved payment methods, and billing settings.
Subscription
Manage workspace subscriptions and browse self-serve plans.
Usage
Workspace-level spend analytics and CEL pricing previews. Per-task charges are documented in Tasks: get task cost.
Store
Browse approved apps, skills, agents, and flows from the public store.
Magic Link Sign-in
Passwordless email sign-in for the inference shell workspace. The same email includes a clickable link and a short login code for users who read email on a different device than the one they sign in o...
Device Authorization
OAuth 2.0 device authorization flow (RFC 8628) for signing in from CLIs, IDEs, and other devices without a browser on the same machine.
Publications
Manage publications — the configuration that makes an agent embeddable on external sites.
Embed API
Run published agents from external sites without API keys. Requests go to the /embed route group on the API host.
Triggers
Create automation rules that run an agent, app, or flow on a schedule or when an external webhook fires.
Security
if you've found a security vulnerability in inference shell or belt.sh, we want to hear about it.
Pages
Read CMS pages — documentation, blog posts, and landing pages served on inference shell.
API Keys
Create, list, and revoke API keys programmatically. Use the scope catalog to build least-privilege keys for CI, engines, and automation.
Providers
When you run an app or agent on inference shell, your input is processed by a third-party AI provider. Which provider handles your data depends on which app you choose to run.
Credentials
Managed connections to external services: OAuth accounts, API keys, and MCP servers.
Workspaces & Organizations
How accounts, workspaces, and organizations fit together.
Workspaces
Workspaces with members, roles, and their own resources.
Organizations
The company layer: many workspaces, one bill, one policy.
Usage Policy
Control what your workspaces' agents and members can use.
Lifecycle Hooks
Observe and control agent execution at well-defined points in the conversation loop.
OpenAI Compatible
Point any OpenAI client at inference.sh and call every chat model on the platform. The official SDKs, and the tools built on them (Cursor, Continue, LangChain, LlamaIndex, coding-agent harnesses), wor...
Artifacts
Small self-contained pages — published from a file, versioned, shareable by link, and rendered on an origin of their own.
Publishing Artifacts
One file in, one URL out. Same name again is a new version.
Artifact Capabilities
A page is static until it asks. Each capability buys exactly the reach it names, and nothing else.
Sharing Artifacts
Artifacts start private. Sharing is a deliberate step, viewers see one live version, and you choose which one that is.
Flows API
Manage flow definitions, the saved graphs you edit in the web app, via REST.
Secrets API
Manage workspace-scoped API keys and credentials used when apps run.
Workspaces API
Manage workspaces, members, and invites. Workspaces are called teams in the API: endpoints live under /teams and requests carry teamid. Every API key belongs to a workspace, and apps, tasks, secrets, ...
Credentials API
Connect OAuth services, service accounts, and MCP servers for your workspace. Credentials supply tokens and keys to apps and agents at run time.
MCP Servers API
Browse the public MCP connector directory, register workspace-owned MCP servers, and call tools on connected servers.
Publishing Agents
Publish an agent to embed it on external sites. Visitors chat without signing in; your workspace pays for inference.
Notion
Connect Notion to your agents for pages and databases.
Connect Reddit to your agents for posts, comments, and messages.
Salesforce
Connect Salesforce to your agents for CRM data and Chatter.
Microsoft
Connect Microsoft 365 to your agents for Outlook, OneDrive, Teams, and Calendar.
Artifacts API
Publish self-contained HTML or Markdown pages to a shareable URL. Artifacts are versioned and permissioned, and update in place when you publish again.
Remotes API
Register machines that connect as remotes, inspect their status, and dispatch command executions with streamed output.
Exec Runs API
Dispatch commands to a connected remote and read their output. Each exec run is a stored record. Output is stored separately as sequenced chunks.
Vaults API
Group workspace credentials and secrets into named vaults.
Remotes
A remote is a machine you connect to inference with belt remote start. It hosts agent harnesses and, when you opt in, runs agent sessions or shell commands the platform dispatches.
Streaming and Live Functions
An app function can do more than return one result at the end:
Swift SDK
Swift SDK for inference shell agents and apps.
Auth Providers API
An auth provider is one way to connect to a service, identified by its slug (google, google-sa, my-crm): how it signs in or which keys it takes. Its auth methods (authmethods) follow the OpenAPI secur...
API Keys
Personal and workspace API keys, who can manage them, and what happens when someone leaves.
Azure DevOps
Connect the remote Azure DevOps MCP server (https://mcp.dev.azure.com/{organization}) so agents can read repositories, pull requests, wikis and work items. Each person connects their own Microsoft acc...
Even Realities G2
Talk to your inference.sh agent from Even Realities G2 glasses through Even AI.
Usage Policy API
Read and write a workspace's or organization's usage policy — the governance layer that limits which outside apps, knowledge, MCP servers, agents, and flows members may use.
Organizations API
Manage organizations: the company layer above workspaces, shared billing, org admins, and attaching or creating member workspaces.
Forms API
Schema-driven forms collect structured answers from users and agents. Each form is a JSON Schema (with form-specific extensions) plus lifecycle and submission policy settings. Answers are stored as su...
Claude Code Subscription
Use your Claude Pro or Max plan as the model for an agent.
Flow Agent
Edit a flow draft from chat in the v2 flow editor.
Managed Sandboxes
A managed sandbox is a VM the platform runs for you. It boots with belt, connects outbound as an ordinary remote, and shows under Resources → Remotes once it is online. Use it for harness sessions a...
Projects
Projects are named folders inside a workspace for chats, agents and other resources. A resource without projectid sits in the workspace root.
Sandboxes API
Create and manage managed sandboxes: VMs on platform engines, or on your own, that run belt remote start and connect back as an ordinary remote. Use a sandbox's remoteid with the Remotes and Exec runs...
Two-step Verification
Manage two-step verification for a signed-in account: turn the switch on or off, enroll authenticator apps and passkeys, issue recovery codes, and rename or remove methods. Finish a pending sign-in or...
GitHub App
Connect GitHub through the inference shell GitHub App: install it on your account or organization, pick the repositories, and your agents and triggers act on those repositories with the app's permissi...
Sandbox Quickstart
Create a managed sandbox, run a command in it, and stop it. A sandbox is a Linux VM the platform runs for you. It connects as a remote, so you run commands on it the same way as on your own machine.
Inside a Sandbox
What a managed sandbox has installed, how its disk and network behave, how secrets reach it, how to move files, and how to run an agent in it.
Sandbox Limits and Pricing
Sizes, plan limits, timings, what a managed sandbox costs, and the errors you can get.
Hardening and Tuning the Host
engine setup can also harden and tune the machine the engine runs on. Both are off unless you ask for them. The install command from add engine runs engine setup --dedicated, which turns both on.
Where Sandboxes Run
The hosts a managed sandbox runs on, what its CPU looks like from inside, and how fast it is.
we use cookies
we use cookies to ensure you get the best experience on our website. for more information on how we use cookies, please see our cookie policy.
by clicking "accept", you agree to our use of cookies.
learn more.