llms.txt · git:20261116.3a7b00b · 2026-11-16 · sha256 a98b6f5489e6d440
llms.txt git:20261116.3a7b00bA
Immutable. This exact content never changes and is served at /api/v1/blob/a98b6f5489e6d440.
# 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. - 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 init | info | dev | invoke | build | start | models | login | logout | auth | schedules | deploy`. A coding agent checks an agent with `fastagent info --json`, `fastagent auth check --provider <id>`, `fastagent invoke` (`--json` for its events, `--session` to continue a conversation) and `fastagent schedules run`; `fastagent login <provider> --method account --json` prints the address the owner signs in at. ## 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. - [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.