# Agents and automation

> Let a coding agent or a script manage your jsflow account safely: the CLI, access tokens, and what only a person can do.

jsflow can be driven by coding agents and scripts as well as by people. The pieces:

- **[The `jsflow` command line](https://jsflow.com/docs/agents/cli.md)**: apps, keys, usage, logs and rooms, with JSON output, stable exit codes, no prompts, and safe retries.
- **[Access tokens](https://jsflow.com/docs/agents/credentials.md)**: a token lets a tool act as you, with limited [scopes](https://jsflow.com/docs/agents/scopes.md), in one account, for a limited time. You create it in the dashboard, or approve a login from the CLI.
- **[An `AGENTS.md` for your repository](https://jsflow.com/docs/agents/agents-md.md)**: rules for an agent that works on your code.
- **Docs an agent can read**: [`llms.txt`](https://jsflow.com/llms.txt) lists the docs, every page has a Markdown copy (add `.md` to its address), and [`llms-full.txt`](https://jsflow.com/llms-full.txt) is all of it in one file. The [error codes](https://jsflow.com/docs/reference/errors.md) are also [data](https://jsflow.com/docs/errors.json).

## Use jsflow with your agent

An Agent Skill teaches your coding agent jsflow and the safe way to run the CLI. It is free and MIT-licensed, in the [community repository](https://github.com/precisit/jsflow-community/tree/main/plugins/jsflow).

- **Claude Code:** `/plugin marketplace add precisit/jsflow-community`, then `/plugin install jsflow@jsflow`.
- **Other agents:** `npx skills add precisit/jsflow-community`.
- **GitHub CLI:** `gh skill install precisit/jsflow-community jsflow`.

No jsflow account yet? Run `npx jsflow-cli signup`: a person creates the account in the browser and approves the login. Details: [Set up an agent](https://jsflow.com/docs/agents/setup.md).

## What stays with a person

A token can read your usage, logs and rooms, create and change apps and origins, manage keys, and evict and block users, as far as its scopes allow. It can **never** enter payment details, change the plan or the spend cap, delete an app or the account, export account data, manage members, set up webhooks, or create a token. The CLI and the API answer those with `human_required` and a link: a person opens it and does it, signed in.

An agent cannot create an account on its own: a person creates it in the browser (`npx jsflow-cli signup` opens the page) and accepts the terms.

## Start here

1. [Set up an agent](https://jsflow.com/docs/agents/setup.md): `npx jsflow-cli signup` or `login` (a person approves a code), install, and what to put in `JSFLOW_TOKEN`.
2. [Which credential for which job](https://jsflow.com/docs/agents/credentials.md): publishable key, secret key, access token, join ticket.
3. Give the agent your [`AGENTS.md` section](https://jsflow.com/docs/agents/agents-md.md).

**No invitation yet?** Build and run on `http://localhost` or `127.0.0.1` with the shared demo app (up to 16 peers a room); its key is in the [quick start](https://jsflow.com/docs/start/quick-start.md). The demo app is shared, so use a random room name. Your own app key, for your own domain, comes with an invitation: join the [waitlist](https://jsflow.com/waitlist/).

Source: https://jsflow.com/docs/agents/
