All clients

Gemini CLI

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.

  1. 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-in

    On 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-in
  2. Add this to ~/.gemini/settings.json, with the paths of your computer:

    {
      "mcpServers": {
        "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" }
        }
      }
    }

    On Windows:

    {
      "mcpServers": {
        "assetrouter": {
          "command": "C:\\Users\\YOUR_NAME\\assetrouter-agent\\.venv-mcp\\Scripts\\python.exe",
          "args": ["C:\\Users\\YOUR_NAME\\assetrouter-agent\\assetrouter-mcp.py"],
          "env": { "ASSETROUTER_API_URL": "https://assetrouter.eu" }
        }
      }
    }
  3. 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.

Connector reference

Names and logos belong to their owners. They show where the connector works and imply no agreement with them.