> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fortressproductivity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenRouter Spawn setup

> Use Fortress with agents launched through OpenRouter Spawn or custom OpenRouter Agent SDK harnesses.

OpenRouter Spawn launches agents on cloud providers. It does not impose one universal MCP client config. The right Fortress setup depends on the runtime you spawn.

## Recommended path

1. Go to [OpenRouter Spawn](https://openrouter.ai/spawn).
2. Choose the agent runtime or template.
3. In Fortress, create a separate agent identity for that runtime.
4. Use the matching provider page:

| Spawned runtime                 | Use this Fortress setup                      |
| ------------------------------- | -------------------------------------------- |
| Claude Code                     | [Claude Code](/agents/providers/claude-code) |
| Codex                           | [Codex](/agents/providers/codex)             |
| Cursor-compatible environment   | [Cursor](/agents/providers/cursor)           |
| Windsurf-compatible environment | [Windsurf](/agents/providers/windsurf)       |
| OpenClaw                        | [OpenClaw](/agents/providers/openclaw)       |
| Custom code                     | [Generic MCP](/agents/providers/generic)     |

## Generated values

If you choose **OpenRouter Spawn** in Fortress, the setup page gives environment variables for a custom harness:

```bash theme={"theme":"github-dark"}
export FORTRESS_MCP_URL='https://api.fortressproductivity.com/mcp?agent_id=<agent-id>'
export FORTRESS_MCP_AUTHORIZATION='Bearer ft_<token>'
```

Pass those values to the MCP client inside your spawned agent. If you are building with `@openrouter/agent`, use an MCP client library to connect to Fortress and expose Fortress tools to your agent loop, or convert MCP tool definitions into the tool format your harness expects.

## Verify

From inside the spawned agent environment, ask the agent to read `fortress://workspace/overview`.

See OpenRouter's [Agent SDK documentation](https://openrouter.ai/docs/agent-sdk/overview) and [MCP server guide](https://openrouter.ai/docs/guides/coding-agents/mcp-servers).
