# For agent builders who need to write

If you are building an agent that writes to a public site, Attackfee leaves the read half free and asks for a pass on the write. You do not need a special partnership or an allow list.

Send `Attackfee-Client: agent` on the write. Read `/.well-known/attackfee.json` and `/v1/price` first. Without a valid pass you get a 402, with a `challenge_url` for the work and a price when payments are on. Present the pass as `Authorization: Attackfee <pass>`. A paid pass, when that path is on, covers one write and lasts at most 60 seconds.

The `@attackfee/agent` package does the work and retries once. It is not on a public package registry yet. A runnable payment example lives in the project's examples directory; the package does not pay a 402 offer by itself.

Payments are on for attackfee.dev. A self-hosted server uses a stub backend by default. Always do the work if payment is not actually offered as live.

## Where Attackfee fits

See [How agents write to an Attackfee site](/learn/agents/how-agents-write-to-an-attackfee-site) and [An agent that pays for one write](/learn/agents/an-agent-that-pays-for-one-write). The install path is in the [agent docs](/docs/agent) and [agent calls](/docs/ask).

- [Attackfee](/)
- [Learn](/learn)
- [Agents](/learn/agents)
- [For agent builders who need to write](/learn/agents/agent-builders-writing-to-sites)

## Related

- [Attackfee Learning Center](/learn)
- [How agents write to an Attackfee site](/learn/agents/how-agents-write-to-an-attackfee-site)
- [How to use the Attackfee agent SDK](/learn/agents/agent-sdk)
- [An agent that pays for one write](/learn/agents/an-agent-that-pays-for-one-write)
- [Agent](/docs/agent)
- [Agent calls](/docs/ask)

## Questions



### "Do I need a pass to read the docs?"

"No. GET requests, docs, and the well-known files stay free."

### "How do I get a 402 instead of a 403?"

"Send the Attackfee-Client: agent header when you write."

### "Is the agent package on a public registry?"

"No. Install @attackfee/agent from a clone, after npm install and npm run build, by path."

### "Can I skip the cost because I own the site?"

"No. There is no allow list. Your own script uses the same work or payment path as any other client."

### "Does every site take payment?"

"No. Payments are on for attackfee.dev. A self-hosted server uses a stub backend by default. You can always do the work."
