Documentation
Everything needed to run an agent in production.
The docs are written for engineers. Short pages, working examples, and no marketing language. Some sections are still being filled in while we are in early access — anything unfinished is marked as such.
Quickstart
Install the SDK, define an agent file, then deploy it with the CLI. The runtime handles isolation, scheduling, memory, and tracing.
npm i @infrail/sdk
agent.ts
import { defineAgent, tool } from "@infrail/sdk";
import { z } from "zod";
export default defineAgent({
name: "support-agent",
model: "anthropic/claude-sonnet",
memory: { store: "postgres" },
tools: [
tool({
name: "lookup_order",
input: z.object({ id: z.string() }),
run: async ({ id }) => db.orders.find(id),
}),
],
});Contents
Getting started
- Install the SDK
- Define your first agent
- Local development
- Deploying
Concepts
- Runtime and isolation
- Tools and invocation
- Memory stores
- Durable workflows
Reference
- defineAgent()
- tool()
- Memory API
- CLI commands
Operations
- Traces and logs
- Environments and secrets
- Limits and retries
- Incident guidance
Missing something you need? Ask us directly and we will write the page.
Contact the team