llms.txt · git:20261119.e182723 · 2026-11-19 · sha256 a4bee71d92a2ecb3
llms.txt git:20261119.e182723A
Immutable. This exact content never changes and is served at /api/v1/blob/a4bee71d92a2ecb3.
# FastAgent > FastAgent is the serving layer for local agent directories. It takes a directory out of the terminal and turns it into a running agent service: embedded in an app, called over HTTP through its Agent API, or running on a clock. The harness is pi-durable; models come from pi-ai, with your own providers in code. Key facts: - Install: `npm i -g @fastagent-sh/fastagent` (CLI) or `npm i @fastagent-sh/fastagent` (library). Requires Node >= 24.15. Inside an agent the global `fastagent` runs the agent's own installed version; without it, `npx @fastagent-sh/fastagent <command>` (never `npx fastagent`, another package on npm). - An agent is a directory of its own, marked by `fastagent.config.ts` (`defineAgent`): `SYSTEM.md` (its prompt), `AGENTS.md`, `skills/`, `prompts/`, code under `src/tools/`, `src/extensions/`, `src/schedules/`. `fastagent build` compiles it into `dist/` for `start`, embedding and deploy. - The contract is the [Agent API](https://fastagent.sh/docs/agent-api/), in process (`openAgent`) and over HTTP (`connectAgent` from `@fastagent-sh/client`): sessions the Agent names, messages whose outcome outlives their callers, a durable history. A serve answers `GET /health`, and the API under `/v1` only when `FASTAGENT_API_KEY` holds a key. - Core CLI: `fastagent [-C <dir>] init | login | logout | dev | invoke | info | models | schedules | build | start | deploy` (`deploy init docker|compose|fly|railway|agentcore`, `deploy check [--json]`). A coding agent checks an agent with `fastagent info --json`, `fastagent login <provider/model-id> --check`, `fastagent invoke` (`--json` for its events, `--session` to continue a conversation), `fastagent schedules list --json` and `fastagent schedules run`; `fastagent login <provider> --method account --json` names the command the owner runs in a terminal of their own to sign in. ## Start here - [Website](https://fastagent.sh/): project overview, install, and product paths. - [AI-guided start](https://fastagent.sh/start.md): executable instructions for a coding agent. - [Documentation index](https://fastagent.sh/docs/): the full documentation map. ## Guides - [Overview](https://fastagent.sh/docs/overview/): what FastAgent is and is not. - [Quickstart](https://fastagent.sh/docs/quickstart/): scaffold, check, add a tool, and run. - [Agent development guide](https://fastagent.sh/docs/ai-start/): step-by-step instructions for authors and coding agents. - [Configuration](https://fastagent.sh/docs/configuration/): model, providers, environment, secrets, ports, tools, and schedules. - [CLI reference](https://fastagent.sh/docs/cli/): every command and flag. - [Embedding](https://fastagent.sh/docs/embedding/): use FastAgent as a library inside your own app. - [MCP servers](https://fastagent.sh/docs/mcp/): connect MCP tool servers. - [Deploy](https://fastagent.sh/docs/deploy/): run the agent in a container on any host. - [AgentCore](https://fastagent.sh/docs/agentcore/): run it on Amazon Bedrock AgentCore, one instance per user, with sessions in Aurora DSQL. - [Troubleshooting](https://fastagent.sh/docs/troubleshooting/): common setup and runtime issues. ## Reference - [Agent API](https://fastagent.sh/docs/agent-api/): sessions, messages, entries, streaming, errors, and HTTP routes. - [API reference](https://fastagent.sh/docs/api-reference/): public TypeScript exports. - [Contributing](https://github.com/fastagent-sh/fastagent/blob/main/CONTRIBUTING.md): branch model, PR loop, and review policy. - [Security policy](https://github.com/fastagent-sh/fastagent/security/policy): how to report a vulnerability.