mcp
v0.5.1MCP server and private mode for coding agents on OffRouter private inference.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_models List models
List the private models on OffRouter with their context length and price in USD per million tokens. Use it to find a model id for ask or compare.
| Parameter | Type | Description |
|---|---|---|
search | string | Filter on the model id, like "qwen" or "deepseek". |
ask Ask a private model
Send a prompt to an OffRouter model and get the answer back, optionally with images (screenshots, diagrams, scans) for a model that reads them. It runs inside a GPU TEE and is not logged, so it is a good fit for sensitive material, a second opinion, or cheap bulk work.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model id from list_models, like "gemma-4-31b". |
prompt * | string | The user message. |
images | array | Up to 4 images for a model that reads them (list_models marks them "reads image"): local file paths, http(s) URLs or data URLs. PNG, JPEG, WebP or GIF, up to 8 MB each. They are read on this machine a… |
max_tokens | integer | Cap on output tokens. Reasoning models need a generous budget. |
system | string | Optional system prompt. |
temperature | number |
compare Compare models
Run the same prompt on 2 to 4 models in parallel and get every answer with its cost side by side.
| Parameter | Type | Description |
|---|---|---|
models * | array | Model ids from list_models. |
prompt * | string | The user message. |
images | array | Up to 4 images for a model that reads them (list_models marks them "reads image"): local file paths, http(s) URLs or data URLs. PNG, JPEG, WebP or GIF, up to 8 MB each. They are read on this machine a… |
max_tokens | integer | Cap on output tokens. Reasoning models need a generous budget. |
system | string | Optional system prompt. |
generate_image Generate an image
Generate images from a text prompt on a private OffRouter image model. It runs inside a GPU TEE and nothing is stored. Priced per image (see list_models). The images come back inline and are saved as files, whose paths are returned. Image models do not take end to end encryption yet, so the prompt reaches the gateway in the clear.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | What to draw. |
model | string | Image model id from list_models, like "flux-2-klein". Defaults to the first one. |
n | integer | How many images, 1 by default. |
save_dir | string | Folder to save the images in. Defaults to OFFROUTER_IMAGE_DIR, or a temp folder. |
size | string | WIDTHxHEIGHT, each side a multiple of 16 from 256 to 2048. Defaults to 1024x1024. |
web_search Private web search
Search the web privately. The search runs from inside an OffRouter enclave, so the search engine sees the query coming from the enclave, never this machine, its IP or an account. Emails, API keys, card numbers and similar are taken out of the query before it leaves. The request and results are encrypted end to end. Costs one flat price per search.
| Parameter | Type | Description |
|---|---|---|
query * | string | What to search for. |
count | integer | How many results. Default 10. |
country | string | Two-letter country code to search from, such as US. |
freshness | string | Only results from the past day, week, month or year. |
language | string | Language code of the results, such as en. |
web_fetch Private page fetch
Read a web page privately, as clean text. The page is fetched from inside an OffRouter enclave, so the site sees the enclave, never this machine; no cookies or referrer are sent. The URL and the page are encrypted end to end. Works on HTML, text, JSON and XML. Costs one flat price per page.
| Parameter | Type | Description |
|---|---|---|
url * | string | The http or https page to read. |
links | boolean | Also list the links on the page. |
max_chars | integer | Most characters of text to return. Default 20000. |
transcribe_audio Transcribe audio
Turn a recording (a voice note, a meeting, a call) into text on a private speech model inside a GPU TEE. Takes a local audio file or an http(s) URL, up to 25 MB: mp3, wav, m4a, ogg, webm or flac. Priced per minute (see list_models). Audio is not end to end encrypted: it reaches the gateway in the clear on its way to the TEE, and nothing is kept.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to a local audio file, or an http(s) URL. |
language | string | The spoken language as an ISO-639-1 code, like "en". Detected when left out. |
model | string | Speech model id from list_models. Defaults to whisper-large-v3. |
prompt | string | Names, terms or spellings to expect, to help the model. |
timestamps | boolean | Also return timed segments (whisper-large-v3 only). |
embed Embed texts
Turn texts into embedding vectors on a private model inside a GPU TEE, and see how similar they are to each other. The vectors are saved to a JSON file whose path is returned, so they do not flood the conversation. Use it to compare passages, find near duplicates, or build a small search index. Not end to end encrypted: the texts reach the gateway in the clear on their way to the TEE, and are not kept.
| Parameter | Type | Description |
|---|---|---|
texts * | array | The texts to embed, in order. |
model | string | Embedding model id from list_models. Defaults to the first one. |
save_path | string | Where to save the vectors as JSON. Defaults to a file in the temp folder. |
rerank Rerank documents
Order documents by how well they answer a query, with a relevance score each, on a private rerank model inside a GPU TEE. Good for picking the passages that matter out of search results, files or notes before asking a model about them. Not end to end encrypted: the query and documents reach the gateway in the clear on their way to the TEE, and are not kept.
| Parameter | Type | Description |
|---|---|---|
documents * | array | The documents to score, in any order. |
query * | string | What you are looking for. |
model | string | Rerank model id from list_models. Defaults to the first one. |
top_n | integer | Only return the best this many. |
account Account
Show how this server pays for calls: the prepaid key balance and recent spend, the wallet address and per call cap, or what is left on the free demo.
verify_enclave Verify the enclave
Check the enclave right now from this machine: the Intel TDX quote, that the report is fresh, and that it booted the published code. Returns the key prompts are encrypted to.
list_agents List Studio agents
List the agents published on OffRouter Studio, newest first: what each does, its model and tools, how its runs have gone, and whether it has earned a ready standing. Each runs privately in a TEE with its own wallet.
| Parameter | Type | Description |
|---|---|---|
ready_only | boolean | Only agents that passed their evaluation and have run well for a day. |
search | string | Filter on the name or purpose, like "trading" or "news". |
get_agent Get a Studio agent
Show one Studio agent in full: its purpose, example tasks, latest evaluation, standing, wallet and config hash.
| Parameter | Type | Description |
|---|---|---|
id * | string | The agent id from list_agents, 0x followed by 32 hex characters. |