Codex
Agents connect to AssetRouter through our MCP connector, which runs on your computer. The same connector works in these clients; only the place where you add it changes.
First install the connector once (macOS or Linux):
cd "$HOME" \ && curl -fsSLo assetrouter-agent.zip https://assetrouter.eu/docs/mcp/download/agent/ \ && python3 -m zipfile -e assetrouter-agent.zip . \ && cd assetrouter-agent && python3 -m venv .venv-mcp \ && .venv-mcp/bin/python -m pip install -r requirements-mcp.txt \ && ASSETROUTER_API_URL=https://assetrouter.eu .venv-mcp/bin/python assetrouter-mcp.py sign-inOn Windows, in PowerShell:
Set-Location $HOME Invoke-WebRequest https://assetrouter.eu/docs/mcp/download/agent/ -OutFile assetrouter-agent.zip Expand-Archive assetrouter-agent.zip -DestinationPath . -Force Set-Location assetrouter-agent py -3 -m venv .venv-mcp .\.venv-mcp\Scripts\python.exe -m pip install -r requirements-mcp.txt $env:ASSETROUTER_API_URL = "https://assetrouter.eu" .\.venv-mcp\Scripts\python.exe assetrouter-mcp.py sign-inConnect it with one command:
codex mcp add assetrouter --env ASSETROUTER_API_URL=https://assetrouter.eu -- "$HOME/assetrouter-agent/.venv-mcp/bin/python" "$HOME/assetrouter-agent/assetrouter-mcp.py"Or add it to ~/.codex/config.toml:
[mcp_servers.assetrouter] command = "/absolute/path/to/assetrouter-agent/.venv-mcp/bin/python" args = ["/absolute/path/to/assetrouter-agent/assetrouter-mcp.py"] env = { ASSETROUTER_API_URL = "https://assetrouter.eu" }Then ask your agent to read the licence of a page and, if the use is allowed, to buy it. It uses the connector's tool
buy_license(resource_url, max_price_usd, usage="ai-input"), paid in USDC, never above the price you set.To pay, add to the client's config, next to ASSETROUTER_API_URL: ASSETROUTER_WALLET_KEY (the paying wallet, never in a prompt), ASSETROUTER_BUYER_ORG and ASSETROUTER_BUYER_VAT. ASSETROUTER_MAX_SPEND_USD sets a ceiling per purchase. Tell your agent to ask you before it buys: it spends real money.
Names and logos belong to their owners. They show where the connector works and imply no agreement with them.