
Connecting an AI assistant to Every.Farm used to take a few steps: find the API Tokens panel, create a token, remember to restrict it to the right farm, then explain to the assistant where the API lives and how to use it.
That is now one button. Open a farm, click Connect AI agent, and you get a token that only works on that farm plus a prompt you can paste straight into your assistant.
Where to find it
Open any farm. The green Connect AI agent button is at the top-left of the map, next to the farm name (pictured above). It is also listed in the Plugins drawer as Connect an AI agent.
The farm's Owner, Administrators and Editors see the button. If you are a Viewer, ask one of them to connect the agent or to make you an Editor.
The three steps

1. Choose what the agent may do
- Read only is selected by default and is the right choice for most work. The agent can see the farm's blocks, datasets, collectors, satellite analyses, missions and alerts, and change nothing.
- Read and write also lets it add, edit and delete datapoints, create and replace datasets, draft missions, and run analyses. It cannot move a robot, and the missions it creates are drafts for a person to publish. A dataset it deletes goes to the trash, where you can restore it; a datapoint it deletes is gone, so give write access to agents you trust with that.
2. Create the token
Pick how long the token should last (30 days, 90 days, 1 year, or never; 90 days is the default) and click Create token for your farm.
The token is tied to this one farm. Your other farms are invisible to it. As soon as it is created, the drawer tests it against the API and tells you what it can see, for example "Token works: it can see 12 blocks and 30 datasets on this farm."
The token is shown once. You do not need to copy it by hand, because the next step includes it.
3. Give it to your agent
Two buttons, depending on how your assistant connects:
Copy agent prompt is for any chat assistant that can make web requests. It copies a short brief that you paste in as your first message. It contains the token, the API address, your farm's id and size, and where to find the documentation. It looks like this:
You have access to my farm "Lakeview Vineyard" on Every.Farm, a farm data
platform (blocks, datasets, field data collection, satellite analyses,
robot missions).
API base URL: https://api.every.farm/v1
Token: efv_…
Access: read only, restricted to this farm. Keep the token private and
never print it.
Send it on every request as the header: Authorization: Bearer <token>
My farm id is …. It has 12 blocks and 30 datasets.
How to find your way around:
1. GET https://api.every.farm/v1 (no auth) lists every endpoint with a
link to its documentation.
2. GET https://api.every.farm/v1/docs?endpoint=METHOD /v1/path returns
that endpoint's docs as markdown with examples.
3. OpenAPI 3.1: https://api.every.farm/v1/openapi.json
4. Start with GET /v1/farms to confirm access, then list the farm's
blocks and datasets.
It goes on with a few rules (read the documentation link in any error before retrying, the rate limits, ask before deleting anything). You can read the whole thing before copying: click What the prompt says in the drawer.
Copy for MCP is for assistants that support the Model Context Protocol, such as Claude Desktop, Claude Code and Cursor. It copies a configuration snippet that installs the Every.Farm MCP server with your token already filled in:
{
"mcpServers": {
"everyfarm": {
"command": "npx",
"args": ["-y", "everyfarm-mcp"],
"env": { "EVERYFARM_TOKEN": "efv_…" }
}
}
}
With MCP the assistant gets named tools (list the farm's datasets, read a dataset's summary, check a mission's progress) instead of working out web requests itself. If your assistant supports it, this is the better route for reading and analysis. The MCP server is deliberately cautious about changes: whatever access the token has, the only things it can change are drafting a mission and acknowledging an alert.
What happens next
You do not have to teach the assistant the API. The first address in the prompt returns a list of every endpoint with a link to its documentation, and every error message carries a link to the right page, so a wrong request corrects itself.
Some things to try once it is connected:
- "List my datasets and tell me which ones were updated this month."
- "Summarize the soil EC dataset: how many points, the range, and where the highest values are."
- "Compare this year's cluster counts with last year's, block by block."
- "Which crops would suit this farm's climate and soil?" The prompt also points the agent at the public Crop Picker API, which needs no token.
Managing tokens
The bottom of the drawer lists your tokens: the ones on this farm first, then the ones on your other farms, each with when it was last used. Revoke cuts that agent off immediately.
You can have 10 active tokens. If you reach the limit, the drawer says so and sorts the list so the tokens that have gone longest without use are at the top, which makes it easy to retire one and carry on.
A few habits worth keeping:
- Start with read only. Create a read-and-write token when the agent has a job that needs it.
- One token per agent, so you can revoke one without disturbing the others.
- The copied prompt contains the token. Treat the conversation you paste it into the way you would treat a password.
More detail
- Working with AI agents in the documentation covers what each access level allows.
- Developer API reference lists every endpoint.
- Our earlier post, Connect Every.Farm to Claude (or any AI agent), explains the API side in more depth, including a worked example.
Want to try this on your own farm? Open Every.Farm — it's free while we're in research-platform mode.