Skip to main content
Coding agents such as Claude Code, Codex and Cursor are very good at writing code against an API, as long as they can read its documentation. If your agent can read these docs, you can simply ask it for what you want, for example “run my tests in a Fibre sandbox” or “give each user of my app their own sandbox”, and it will write the code for you.
This page is about your agent writing code that uses Fibre. To let your agent use sandboxes itself, to run your tests, builds and servers away from your machine, add Fibre’s own MCP server instead: see MCP server and skill.
There are three ways to give your agent the docs. You only need one of them:

Connect the docs’ MCP server

MCP (Model Context Protocol) is a standard way for an AI agent to use outside tools. These docs run an MCP server at this address:
Once your agent is connected to it, the agent gets two tools: one that searches the docs, and one that reads a full page. It uses them on its own while it works, so it always writes code against the current API. To add it, run the command for your agent:
If you use Cursor or VS Code, you do not need a command. Open the menu at the top of any page of these docs and choose Connect to Cursor or Connect to VS Code. For any other agent, the same menu has Copy MCP install command and Copy MCP server URL, which you can paste into your agent’s settings. You can check that the server answers with a single request. It lists the two tools:
curl
output

Point your agent at llms.txt

llms.txt is a convention for giving language models a map of a documentation site. These docs publish two versions:
  • /llms.txt lists every page with a one-line description. Give this to your agent first, so it knows what exists and can fetch the pages it needs.
  • /llms-full.txt contains all of the docs in one file. It is useful when your agent cannot fetch pages one by one.
Every page is also available as plain Markdown. Add .md to the end of its address, for example /get-started/quickstart.md.

Copy a single page

For a quick question about one topic, open the menu at the top of the page you are reading. Copy page copies it as Markdown, ready to paste into any chat. Open in Claude and Open in ChatGPT start a new conversation with the page already included.

A prompt to paste

If you would like a starting point, paste this prompt into your agent and then describe what you want to build after it. It tells the agent where to read and asks it to clean up after itself:

Run the agent itself inside a sandbox

Everything above is about your agent writing code that uses Fibre. You can also do the opposite: run the coding agent itself inside a Fibre sandbox. The agent then works on a copy of your repository in a machine of its own, where it can install packages and run commands freely without touching your computer. These pages show how, step by step:
  • Claude Code: Anthropic’s coding agent, run without a terminal.
  • Codex: OpenAI’s coding agent.
  • OpenCode: an open-source agent that works with many models.
  • Claude Agent SDK: build your own agent and run it in a sandbox.
  • Agent frameworks: give an agent in your own app a tool that runs its commands in a sandbox.
When an agent runs inside a sandbox, give it a key that only works on that sandbox. That way, even if the agent misbehaves, it cannot reach your other sandboxes.

Next

  • Quickstart: the calls your agent will make, explained step by step.
  • Concepts: the words your agent will meet in these docs.