# Proxy-router on Akash

Source: https://nodedocs.mor.org/providers/full/proxy-router-akash

## Agent Instructions

- Non-browser fetches of page URLs on this site return clean Markdown (not the JS UI). Prefer `https://nodedocs.mor.org/llms-full.txt` for the full corpus, or `https://nodedocs.mor.org/llms.txt` for the index.
- Per-page Markdown is also at `<page-url>.md` (homepage: `https://nodedocs.mor.org/index.md`).
- Docs search MCP: `https://nodedocs.mor.org/mcp` (discovery: `https://nodedocs.mor.org/.well-known/mcp`).
- Never invent contract addresses, chain IDs, token addresses, or live bid/model counts. Cite Networks and tokens; link active.mor.org for live data.
- Never claim Morpheus runs inference — independent providers do. Opening a session escrows MOR; it does not spend it.

This guide covers deploying the proxy-router on Akash Network. The deployment provides API access via Swagger interface — no GUI or wallet components.

## Pre-requisites

- AI model reachable on a private endpoint (e.g. `http://model.example:8080`).
- Funded wallet (MOR + ETH on BASE) and its private key.
- Akash account with deployment experience.

> The final endpoint URL is only available **after** provider selection and Akash deployment.

## Configuration model

Unlike a typical Docker run, on Akash the proxy-router uses **environment variables instead of volume mounts** for improved reliability:

| Variable | Purpose |
|----------|---------|
| `COOKIE_CONTENT` | API authentication: `username:password` |
| `MODELS_CONFIG_CONTENT` | Single-line JSON for model endpoints (see [models-config](/reference/models-config)) |
| `WALLET_PRIVATE_KEY` | For blockchain interactions |
| Plus chain ID, contract addresses, etc. | See [Env: proxy-router](/reference/env-proxy-router) |

## Deployment

  
### Prepare the SDL

Download and customize [`docs/02.2-proxy-router-akash.yml`](https://github.com/MorpheusAIs/Morpheus-Lumerin-Node/blob/main/docs/02.2-proxy-router-akash.yml). Minimum proxy-router image version: `v2.3.0` (use a newer release tag for current features).
    Configure:
    - Wallet private key
    - API credentials (`COOKIE_CONTENT`)
    - `MODELS_CONFIG_CONTENT` (single-line JSON)

    Save securely — the SDL contains sensitive data.

  
### Deploy

In the Akash Dashboard: **Deploy → Custom Container**. Upload your SDL. Select a provider and deploy. Verify status and logs.

  
### Configure endpoints

Update `WEB_PUBLIC_URL` with the provider URL and port. Note both API port (`8082`) and proxy-router port (`3333`). Format: `http://provider.example:port`.

  
### Register provider on chain

Open `http://provider.example:port/swagger/index.html`. Authenticate with your `COOKIE_CONTENT` credentials. Update the provider endpoint via `POST /blockchain/providers`:
    ```json
    {
      "endpoint": "provider.example:proxy_port",
      "stake": "123000000000"
    }
    ```
    Verify with `GET /blockchain/providers`. Continue with model + bid registration in [Register on chain](/providers/full/register-onchain).

## Sample logs

A successful Akash startup looks like the screenshot at [`docs/images/akash_good_start.png`](https://github.com/MorpheusAIs/Morpheus-Lumerin-Node/blob/main/docs/images/akash_good_start.png).
