This guide builds the proxy-router from source and walks through the API-only consumer flow (no MorpheusUI). For an Electron-included experience, see the packaged installs. For a four-terminal source walk-through (llama.cpp + proxy-router + UI + CLI), see macOS install.

Pre-requisites

  • An ERC-20 wallet on BASE with MOR + ETH (use a top-level, not derived, address). Never share your private key.

TL;DR

1

Install and configure proxy-router

Once.
2

Authorize the contract

Once per wallet (or whenever the allowance is depleted).
3

Query the blockchain for a model

Per session.
4

Open a session

Per session.
5

Send prompts

Per session.

A. Build & run the proxy-router

1

Install OS dependencies

2

Clone and enter the repo

3

Configure .env

Set at minimum:
  • WALLET_PRIVATE_KEY= — your wallet’s private key.
  • ETH_NODE_ADDRESS=wss://... — recommended: an Alchemy/Infura BASE WSS endpoint. Reference: Env: proxy-router.
4

Build and start

On future updates: git pull && ./build.sh && ./proxy-router. Confirm Swagger at http://localhost:8082/swagger/index.html.

B. Authorize the contract

Either via Swagger or curl. Once per wallet, or when allowance is depleted.

C. Query for a model

Pick an Id from the response and use it as <modelId> below. See the API endpoints reference for the full schema.

D. Open a session

The transaction will appear in your wallet’s history at https://base.blockscout.com/address/<wallet_id>.

E. Prompt

The response is OpenAI-compatible SSE.

Quick-and-dirty one-liner