# API overview Base URL, authentication and what the OpenAI-compatible API serves. Source: https://docs.noduma.dev/api/ Noduma's API is an OpenAI-compatible subset, for every account with an API key. | | | |---|---| | **Base URL** | `https://app.noduma.dev/v1` | | **Authentication** | `Authorization: Bearer ndm_k_...`, a key created under **API keys** in the Noduma app | | **Format** | JSON in and out, UTF-8; streamed answers as server-sent events | | **Transport** | HTTPS only | ## Endpoints | Method and path | Key | What it does | |---|---|---| | [`POST /v1/chat/completions`](/api/chat-completions/) | Yes | An answer from a model, whole or [streamed](/api/streaming/), with [tools](/api/tools/) | | [`GET /v1/models`](/api/models/) | Yes | Noduma's models, each with its state and price | | [`GET /v1/catalog`](/api/catalog/) | No | The same list without a key | | [`GET /v1/account`](/api/account/) | Yes | Your balance and default routing | Any other address under `/v1/` answers `404 unknown_url`; a served address with another method answers `405 method_not_allowed` with an `Allow` header. ## Compatible, and how it differs - Text only: a message's content is a string or an array of `text` parts. Images and audio are refused. - No embeddings, completions, images, audio, files, assistants or batch endpoints. - A model name is a Noduma catalog name, such as `qwen2.5-7b-instruct-q4_k_m`; see [Models](/models/). - `usage` carries two fields of Noduma's own, `noduma_cost` and `noduma_price_per_1k_tokens`; clients that do not know them ignore them. See [Usage and cost](/api/usage-and-cost/). - Two request headers of Noduma's own: [`Noduma-Routing` and `Noduma-Redaction`](/api/headers/). - Unknown top-level fields of a request are ignored, so newer SDKs keep working. ## Keys An API key starts with `ndm_k_`, is shown once when created, and is stored by Noduma only as a hash. Keep it like a password: whoever holds it spends your credits. **Revoke** in the Noduma app ends it at once. A key also opens the [chat page](https://chat.noduma.dev) and the terminal commands `noduma chat` and `noduma agent`. --- # Account GET /v1/account, your balance and default routing mode. Source: https://docs.noduma.dev/api/account/ `GET https://app.noduma.dev/v1/account` The balance of the account that owns the key, in credits. ```sh curl https://app.noduma.dev/v1/account -H "Authorization: Bearer $NODUMA_API_KEY" ``` ```json { "id": "...", "name": "...", "available": 48210, "reserved": 4096, "pending": 0, "routing": "any" } ``` | Field | Meaning | |---|---| | `id`, `name` | The account | | `available` | Credits you can spend now | | `reserved` | Credits held for answers in progress; released or charged when each ends | | `pending` | Earnings not yet available. Earnings are available as soon as their answer is settled, so this is 0 except for earnings held under an earlier rule, which become available at their recorded time | | `routing` | The default routing mode when a request sends no `Noduma-Routing` header | `noduma credits` shows the same. Credits are not money: they cannot be bought or paid out. --- # Catalog GET /v1/catalog, the model list without a key. Source: https://docs.noduma.dev/api/catalog/ `GET https://app.noduma.dev/v1/catalog` The same list as [`GET /v1/models`](/api/models/), with the same fields, without a key: for anyone deciding whether to create an account, and for Noduma's homepage. It names no PC and no account. ```sh curl https://app.noduma.dev/v1/catalog ``` - It may be cached for 30 seconds (`Cache-Control: public, max-age=30`). - Browsers may read it from Noduma's homepage only; any other page in a browser is refused by the browser's cross-origin rule. Programs such as curl read it freely. - It answers `GET` only; another method gets `405 method_not_allowed`. - It is not one of the OpenAI-compatible endpoints, so SDKs have no method for it. --- # Chat completions POST /v1/chat/completions, its request fields, their limits and the answer. Source: https://docs.noduma.dev/api/chat-completions/ `POST https://app.noduma.dev/v1/chat/completions` An answer from one of Noduma's models. The coordinator chooses a PC by the request's [routing mode](/concepts/routing/), reserves the cost of the longest answer, sends the request to the PC and charges what it measured. Requests are at most 1 MiB. ## Request | Field | Type | Rules | |---|---|---| | `model` | string | Required, 1 to 256 bytes, a name of Noduma's list (`GET /v1/models`) | | `messages` | array | Required, 1 to 256 messages | | `max_tokens` or `max_completion_tokens` | integer | 1 to 8,192. Default 1,024, or 3,072 for a model that thinks first. `max_completion_tokens` wins when both are set | | `temperature` | number | 0 to 2 | | `top_p` | number | 0 to 1 | | `stop` | string or array | Up to 4 strings | | `stream` | boolean | `true` streams the answer as server-sent events; see [Streaming](/api/streaming/) | | `tools` | array | Function tools, passed to the PC's engine; see [Tools](/api/tools/) | | `tool_choice` | string or object | Passed to the PC's engine with `tools` | Other top-level fields are ignored. ### Messages | Field | Rules | |---|---| | `role` | `system`, `user`, `assistant` or `tool`. `developer` is accepted and sent as `system` | | `content` | A string, or an array of `{"type": "text", "text": "..."}` parts. Required unless an `assistant` message carries `tool_calls` | | `name` | Optional | | `tool_calls` | Only on `assistant` messages | | `tool_call_id` | On `tool` messages, the call it answers | A message with any other field is refused. Reasoning that an earlier answer of a thinking model held between `` and `` is removed from the history before it reaches a PC, so it is neither sent nor charged again. ## Example **curl** ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "qwen2.5-14b-instruct-q4_k_m", "max_tokens": 200, "temperature": 0.3, "messages": [ {"role": "system", "content": "You answer in one short paragraph."}, {"role": "user", "content": "What is a GGUF file?"} ] }' ``` **Python** ```python answer = client.chat.completions.create( model="qwen2.5-14b-instruct-q4_k_m", max_tokens=200, temperature=0.3, messages=[ {"role": "system", "content": "You answer in one short paragraph."}, {"role": "user", "content": "What is a GGUF file?"}, ], ) print(answer.choices[0].message.content, answer.usage.model_extra["noduma_cost"]) ``` **JavaScript** ```js const answer = await client.chat.completions.create({ model: 'qwen2.5-14b-instruct-q4_k_m', max_tokens: 200, temperature: 0.3, messages: [ { role: 'system', content: 'You answer in one short paragraph.' }, { role: 'user', content: 'What is a GGUF file?' }, ], }); console.log(answer.choices[0].message.content, answer.usage.noduma_cost); ``` ## Answer ```json { "id": "chatcmpl-...", "object": "chat.completion", "created": 1764460800, "model": "qwen2.5-14b-instruct-q4_k_m", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "A GGUF file holds a model's weights ..." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 31, "completion_tokens": 58, "total_tokens": 89, "noduma_cost": 220, "noduma_price_per_1k_tokens": 2000 } } ``` - `finish_reason` is `stop`, `length` (the token limit, or a balance that covered only a shorter answer) or `tool_calls`. - `content` is `null` when the answer is only tool calls. - `prompt_tokens` and `completion_tokens` are the PC's own counts, shown for information and capped; credits never depend on them. See [Usage and cost](/api/usage-and-cost/). - The response header `Noduma-Routing` names the routing mode used. ## Thinking models A model that thinks first (today Qwen3 30B-A3B, Qwen3 8B and gpt-oss 20B; each [model page](/models/) says so) writes its reasoning at the start of `content`, between `` and ``, then the answer. The reasoning is part of the answer and is charged like it. ## When a PC fails If the PC fails while it answers, the coordinator moves the request to another PC that serves the model and can continue an answer; a request is never run twice on two PCs that are both still working. When none can continue, the request ends with `502 node_failed`. See [Errors](/api/errors/). --- # Errors Every error the consumer API returns, with its status, type and code. Source: https://docs.noduma.dev/api/errors/ An error is JSON in OpenAI's shape, with its HTTP status: ```json { "error": { "message": "not enough credits for this request. ...", "type": "insufficient_quota", "code": "insufficient_credits" } } ``` Read `code`; `message` is for people and may change. In a stream that already started, the same object arrives as an event; see [Streaming](/api/streaming/). | Status | `type` | `code` | When | What to do | |---|---|---|---|---| | 400 | `invalid_request_error` | `invalid_request` | A field breaks its rule (the message names it), the body is not JSON or is over 1 MiB, or `Noduma-Routing` is not a mode | Fix the request; see [Chat completions](/api/chat-completions/) | | 401 | `invalid_request_error` | `invalid_api_key` | No key, a wrong key or a revoked key | Check `Authorization: Bearer ndm_k_...` | | 402 | `insufficient_quota` | `insufficient_credits` | The balance does not cover even a 16-token answer | Earn credits or ask the maintainers; see [Credits](/concepts/credits/) | | 403 | `invalid_request_error` | `routing_not_in_plan` | The routing mode is not in your plan | Use `any` or `own`; see [Routing](/concepts/routing/) | | 403 | `invalid_request_error` | `not_a_network_member` | `network:` names a network your account is not a member of, or none | Ask the maintainers who run it | | 404 | `invalid_request_error` | `model_not_found` | The model is not on Noduma's list | Copy a name from `GET /v1/models` | | 404 | `invalid_request_error` | `unknown_url` | The address is not part of the API | See [API overview](/api/) | | 405 | `invalid_request_error` | `method_not_allowed` | A served address with another method | Use the method in `Allow` | | 429 | `rate_limit_error` | `rate_limit_exceeded` | Over 60 requests a minute, or over 4 at once | Wait and retry; see [Limits](/api/limits/) | | 502 | `server_error` | `node_failed` | The PC failed and no other PC could continue, or a PC sent an oversized answer (not charged) | Retry | | 503 | `server_error` | `model_not_available` | The model is on the list but no PC serves it now (`Retry-After: 60`) | Another model, or later | | 503 | `server_error` | `no_capacity` | No PC that may answer is free; for `own`, "None of your PCs serving this model is sharing now" | Retry; for `own`, start sharing on one of your PCs | | 503 | `server_error` | `shutting_down` | The coordinator is restarting (`Retry-After: 10`) | Retry after the delay | | 503 | `server_error` | `store_unavailable` | The coordinator cannot reach its database | Retry shortly | | 504 | `server_error` | `timeout` | The request's deadline expired | A shorter answer, or retry | | 500 | `server_error` | `internal` | Something failed inside the coordinator | Retry; if it persists, write to contact@noduma.dev | ## Retrying Retry a `429`, `502`, `503` or `504` with a growing delay. A request refused before it reached a PC costs nothing. --- # Headers Noduma-Routing and Noduma-Redaction, the two request headers of Noduma's own. Source: https://docs.noduma.dev/api/headers/ ## `Noduma-Routing` Which PCs may answer this request. Without it, the account's default mode applies (`routing` in [`GET /v1/account`](/api/account/)). The answer carries the mode used in its own `Noduma-Routing` header. | Value | Who answers | |---|---| | `any` | Any PC that serves the model; Noduma chooses | | `own` | Only your own PCs, while they share; free | | `vetted` | Only PCs a maintainer vetted | | `trusted` | Only vetted PCs outside every network (Ad-Hoc accounts) | | `network:` | Only the PCs of that Ad-Hoc network (its member accounts) | | `confidential` | Only attested confidential-computing PCs (never run on real confidential hardware) | An account created in the Noduma app may send `any` and `own`; any other value that is a mode is refused with `403 routing_not_in_plan`, and a value that is not one with `400 invalid_request`. A request is never served in a less private mode than it asked for. The modes, and who can read a request in each, are in [Routing](/concepts/routing/). ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Noduma-Routing: own" \ -H "Content-Type: application/json" \ -d '{"model": "qwen2.5-7b-instruct-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}' ``` ## `Noduma-Redaction` `Noduma-Redaction: off` turns off redaction for this request. By default, before a request leaves the coordinator, known secret formats (private keys, API tokens, `password=` values, email addresses) are replaced with placeholders, and the answer gets them back. It covers known formats only. ## Response headers | Header | Meaning | |---|---| | `Noduma-Routing` | The routing mode used | | `Cache-Control: no-store` | On every answer and error | | `Retry-After` | On `503 model_not_available` (60 seconds) and while the coordinator restarts (10 seconds) | --- # Limits Request rate, concurrency, sizes and answer lengths. Source: https://docs.noduma.dev/api/limits/ | Limit | Value | Over it | |---|---|---| | Requests a minute, per account | 60 | `429 rate_limit_exceeded` | | Requests at once, per account | 4 | `429 rate_limit_exceeded` | | Request body | 1 MiB | `400 invalid_request` | | Messages per request | 256 | `400 invalid_request` | | `stop` strings | 4 | `400 invalid_request` | | Answer length (`max_tokens`) | 1 to 8,192 tokens | `400 invalid_request` | | Default answer length | 1,024 tokens; 3,072 for a model that thinks first | | | Context on a PC set up by Noduma | 4,096 tokens per request, prompt and answer together | The engine ends the answer (`finish_reason: "length"`) or refuses the prompt | The limits per account apply to every key of the account together. A low balance shortens an answer to what it covers, down to 16 tokens; see [Credits](/concepts/credits/). --- # Models GET /v1/models, Noduma's models with each one's state and price. Source: https://docs.noduma.dev/api/models/ `GET https://app.noduma.dev/v1/models` Every model of Noduma's catalog, whether or not a PC serves it now, with its state and its price. A request for a model outside this list is refused. **curl** ```sh curl https://app.noduma.dev/v1/models -H "Authorization: Bearer $NODUMA_API_KEY" ``` **Python** ```python for model in client.models.list(): info = model.model_extra["noduma"] print(model.id, info["state"], info["price_per_1k_tokens"]) ``` **JavaScript** ```js const { data } = await client.models.list(); for (const model of data) console.log(model.id, model.noduma.state, model.noduma.price_per_1k_tokens); ``` ## Answer ```json { "object": "list", "data": [ { "id": "qwen2.5-32b-instruct-q4_k_m", "object": "model", "owned_by": "noduma", "noduma": { "price_per_1k_tokens": 4000, "base_price_per_1k_tokens": 4000, "state": "not_available" } }, { "id": "qwen2.5-14b-instruct-q4_k_m", "object": "model", "owned_by": "noduma", "tier": 2, "description": "Served by a group of contributors: several contributors' PCs process each request together, and each of them can read it.", "noduma": { "price_per_1k_tokens": 2500, "base_price_per_1k_tokens": 2000, "state": "ready" } } ] } ``` | Field | Meaning | |---|---| | `id` | The name to send as `model` | | `noduma.state` | `ready`: at least one PC serves it now. `not_available`: on the list, but no PC serves it now; a request gets `503 model_not_available` | | `noduma.price_per_1k_tokens` | The price in force now, in credits per 1,000 tokens | | `noduma.base_price_per_1k_tokens` | The model's price at a demand factor of 1 | | `tier`, `description` | Present only while a group of PCs serves the model ([Tier 2](/concepts/tiers/)) | The list is in the catalog's order, largest model first. Each model's size, source and kind are on its [model page](/models/). The price a request pays is the one in force when it is accepted; see [Credits](/concepts/credits/). --- # Streaming Server-sent events of a streamed answer, the last chunk with usage, and errors in a stream. Source: https://docs.noduma.dev/api/streaming/ With `"stream": true`, the answer arrives as server-sent events (`Content-Type: text/event-stream`) as the PC writes it. Each event is a line `data: ` followed by an empty line, and the stream ends with `data: [DONE]`. **curl** ```sh curl -N https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "qwen2.5-7b-instruct-q4_k_m", "stream": true, "messages": [{"role": "user", "content": "Count to five."}]}' ``` **Python** ```python stream = client.chat.completions.create( model="qwen2.5-7b-instruct-q4_k_m", messages=[{"role": "user", "content": "Count to five."}], stream=True, ) for chunk in stream: if chunk.choices and chunk.choices[0].delta.content: print(chunk.choices[0].delta.content, end="", flush=True) ``` **JavaScript** ```js const stream = await client.chat.completions.create({ model: 'qwen2.5-7b-instruct-q4_k_m', messages: [{ role: 'user', content: 'Count to five.' }], stream: true, }); for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? ''); ``` ## The events ```text data: {"id":"chatcmpl-...","object":"chat.completion.chunk","created":1764460800,"model":"qwen2.5-7b-instruct-q4_k_m","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]} data: {"id":"chatcmpl-...","object":"chat.completion.chunk", ... "choices":[{"index":0,"delta":{"content":"One, two"},"finish_reason":null}]} data: {"id":"chatcmpl-...","object":"chat.completion.chunk", ... "choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":14,"completion_tokens":12,"total_tokens":26,"noduma_cost":15,"noduma_price_per_1k_tokens":1000}} data: [DONE] ``` 1. The first chunk carries the role. 2. Text chunks carry `delta.content`. 3. When the answer calls tools, one chunk carries all `delta.tool_calls`, each with its `index`, `id`, `type` and `function`. 4. The last chunk before `[DONE]` carries `finish_reason` and `usage`, with the answer's cost. You need not ask for it with `stream_options`. The response headers include `Noduma-Routing`, the routing mode used, and `Cache-Control: no-store`. ## Errors - **Before the first chunk**, an error is an ordinary JSON error with its HTTP status, as without streaming. - **After the stream started**, an error arrives as an event, `data: {"error": {"message": "...", "type": "...", "code": "..."}}`, and the stream ends. The status is already `200`, so read the events. ## When a PC fails mid-answer If the PC that answers fails, the coordinator moves the request to another PC serving the model that can continue an answer, and that PC continues it from where it stopped: you see a pause, not a repeat. When no PC can continue it, the stream ends with an error event. ## Proxies If you put a proxy in front of your client, it must not buffer the event stream. Noduma's own answers carry `X-Accel-Buffering: no` for nginx. --- # Tools Function calling through Noduma, and what depends on the model. Source: https://docs.noduma.dev/api/tools/ Noduma passes `tools` and `tool_choice` to the engine of the PC that answers, llama.cpp's server, and relays the calls the model makes. Your program runs the tool and sends its result back. Whether a model calls tools well depends on the model; Qwen3 Coder 30B-A3B and gpt-oss 20B were chosen for the catalog with tool calls in mind. ## The exchange 1. Send `tools`, an array of function tools in OpenAI's form (`{"type": "function", "function": {"name", "description", "parameters"}}`). Anything else in `tools` than an array is refused with `400 invalid_request`. 2. The answer has `finish_reason: "tool_calls"` and `message.tool_calls`, each with an `id`, `type: "function"` and `function.name` and `function.arguments` (a JSON string). `content` is `null` when the answer is only calls. 3. Run each tool. Send the whole conversation again: the `assistant` message with its `tool_calls`, then one `tool` message per call, with its `tool_call_id` and the result as `content`. ```json { "model": "qwen3-coder-30b-a3b-instruct-q4_k_m", "tools": [{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}], "messages": [ {"role": "user", "content": "What is the weather in Madrid?"}, {"role": "assistant", "content": null, "tool_calls": [ {"id": "call_1", "type": "function", "function": {"name": "get_weather", "arguments": "{\"city\": \"Madrid\"}"}} ]}, {"role": "tool", "tool_call_id": "call_1", "content": "{\"temperature_c\": 14, \"sky\": \"clear\"}"} ] } ``` When streaming, the calls arrive in one chunk with `delta.tool_calls` near the end. See [Streaming](/api/streaming/). ## Billing Tool definitions, calls and results are part of the request and the answer: their bytes are measured and charged like text. See [Credits](/concepts/credits/). ## Safety A tool call is text the model wrote on someone's PC. Check its arguments before you act on them, as you would any input from outside your program. `noduma agent` asks before it writes a file or runs a command for this reason; see [chat and agent](/cli/chat/). --- # Usage and cost The usage object, noduma_cost and the price an answer was charged at. Source: https://docs.noduma.dev/api/usage-and-cost/ Every answer, whole or streamed, ends with a `usage` object: ```json "usage": { "prompt_tokens": 31, "completion_tokens": 58, "total_tokens": 89, "noduma_cost": 220, "noduma_price_per_1k_tokens": 2000 } ``` | Field | Meaning | |---|---| | `noduma_cost` | The credits this answer was charged. Always present; `0` for an answer of your own PCs | | `noduma_price_per_1k_tokens` | The price it was charged at, in credits per 1,000 tokens: the one in force when the request was accepted; `0` for your own PCs | | `prompt_tokens`, `completion_tokens`, `total_tokens` | The PC engine's own counts, capped by the request's size and limit, for information only | ## How `noduma_cost` is computed The coordinator measures the request it sent to the PC and the answer it relayed, in bytes, and never trusts the PC's token counts: ```text units = (request bytes + answer bytes) / 4, rounded up cost = units × noduma_price_per_1k_tokens / 1,000, rounded up ``` So a token in the cost is about 4 bytes of text, which is close to, but not the same as, the engine's token count. The request bytes include the messages, the tool definitions and the parameters Noduma sends to the PC. A thinking model's reasoning is part of the answer. Before the request goes out, the cost of the longest possible answer is reserved; afterwards only the real cost is charged. See [Credits](/concepts/credits/). --- # Changelog What changed for people in each Noduma release. Source: https://docs.noduma.dev/changelog/ One version names the coordinator, the Noduma app and the installers of Noduma desktop together. Versions below 1.0 are the beta. ## v0.15.1 2026-11-30 - **Changed:** Model prices show one current rate in credits. - **Changed:** Simpler account, sign-in and chat instructions. ## v0.15.0 2026-11-30 - **Added:** installer downloads counted by day and platform - **Added:** robots.txt and page descriptions for search engines - **Changed:** homepage compressed, cached, www redirects to noduma.dev ## v0.14.0 2026-11-30 - **Added:** nine more models, Qwen3, Gemma 4, gpt-oss and Phi-4 among them - **Added:** models that think first show their reasoning folded - **Changed:** a larger model costs more, by the memory it takes - **Fixed:** noduma chat says "no answer, nothing charged" when refused ## v0.13.1 2026-11-29 - **Added:** optional performance reporting for your PCs - **Added:** the maintainers' usage view - **Changed:** a credit entry records its model ## v0.13.0 2026-11-29 - **Added:** optional performance reporting for your PCs - **Added:** the maintainers' usage view - **Changed:** a credit entry records its model ## v0.12.4 2026-11-29 - **Fixed:** on macOS both clicks on the menu-bar icon open its menu ## v0.12.3 2026-11-29 - **Fixed:** a left click on the tray icon opens its menu ## v0.12.2 2026-11-29 - **Changed:** a floating frame and footer, no lines across the window - **Changed:** PCs, keys and tables as rounded tiles - **Fixed:** the Start sharing button's sheen has no hard edge ## v0.12.1 2026-11-29 - **Fixed:** a stopped PC no longer shows its model as ready ## v0.12.0 2026-11-29 - **Changed:** What's new is a short list, shown when an update is out - **Changed:** a calmer sidebar with one line across the window - **Fixed:** grey text and status dots show in their intended colour ## v0.11.0 2026-11-28 No changes for people were written down for this release. ## v0.10.1 2026-11-28 No changes for people were written down for this release. ## v0.10.0 2026-11-28 No changes for people were written down for this release. ## v0.9.4 2026-11-28 No changes for people were written down for this release. ## v0.9.3 2026-11-27 No changes for people were written down for this release. ## v0.9.2 2026-11-27 No changes for people were written down for this release. ## v0.9.1 2026-11-27 No changes for people were written down for this release. ## v0.9.0 2026-11-25 No changes for people were written down for this release. ## v0.8.1 2026-11-25 No changes for people were written down for this release. ## v0.8.0 2026-11-25 No changes for people were written down for this release. ## v0.7.1 2026-11-25 No changes for people were written down for this release. ## v0.7.0 2026-11-25 No changes for people were written down for this release. ## v0.6.1 2026-11-25 No changes for people were written down for this release. ## v0.6.0 2026-11-25 No changes for people were written down for this release. ## v0.2.9 2026-11-14 No changes for people were written down for this release. ## v0.2.8 2026-11-09 No changes for people were written down for this release. ## v0.2.7 2026-11-04 No changes for people were written down for this release. ## v0.2.6 2026-11-04 No changes for people were written down for this release. ## v0.2.5 2026-11-04 No changes for people were written down for this release. ## v0.2.4 2026-11-04 No changes for people were written down for this release. ## v0.2.3 2026-11-04 No changes for people were written down for this release. ## v0.2.2 2026-11-04 No changes for people were written down for this release. ## v0.2.1 2026-11-04 No changes for people were written down for this release. --- # The noduma command Every noduma command, the environment it reads and how to get it. Source: https://docs.noduma.dev/cli/ `noduma` is one program for consumers, contributors and the maintainers. Every [installer](/contributors/install/) puts it on your PATH beside Noduma desktop. `noduma --help` lists the commands, and `noduma --help` the options of each. ## Commands ### For consumers | Command | What it does | |---|---| | [`noduma chat`](/cli/chat/) | Chat with Noduma's models in the terminal | | [`noduma agent`](/cli/chat/#noduma-agent) | The chat, with tools the model may use in the current folder, each write or command only after your yes | | [`noduma credits`](/cli/credits/) | Your credit balance | ### For contributors | Command | What it does | |---|---| | [`noduma contribute`](/cli/contribute/) | Set this PC up to share in the background, and start, stop or remove it | | [`noduma pair`](/cli/pair/) | Pair this PC with your account in the browser | | [`noduma setup`](/cli/setup/) | Install a pinned llama.cpp engine and a model that fits this PC | | [`noduma share`](/cli/share/) | Share this PC's engine with a coordinator in the foreground | ### For maintainers and Enterprise | Command | What it does | |---|---| | [`noduma coordinator`](/cli/coordinator/) | Run a coordinator, or manage its accounts and PCs | | `noduma maintainer` | The maintainers' dashboard, on loopback beside the coordinator (`noduma operator` is an alias) | ### The local laboratory Three trusted nodes on one machine, for developing Noduma itself; not the network. | Command | What it does | |---|---| | `noduma init` | Create `.env` with a random token for the Docker laboratory | | `noduma serve` | Start a laboratory node | | `noduma peers` | Show the nodes' status, model and counters | | `noduma run` | Send a request to an available node | | `noduma health` | Check that a node process responds | | `noduma version` | Print the version | The account commands of the next release are on [Account commands](/cli/account-commands/). ## Environment | Variable | Used by | Meaning | |---|---|---| | `NODUMA_API_KEY` | `chat`, `agent`, `credits` | Your API key (`ndm_k_...`); never printed | | `NODUMA_API_URL` | `chat`, `agent` | The API address; default `https://app.noduma.dev/v1` | | `NODUMA_NODE_KEY` | `share` | A node key from a coordinator's invite; never printed | | `NODUMA_COORDINATOR` | `share`, `credits` | The coordinator's address | | `NODUMA_JOIN` | `contribute` | A join code from an invite (`ndm_j_...`), which holds the node key | | `NODUMA_APP` | `pair`, `contribute` | The Noduma app's address | | `NODUMA_TOKEN`, `NODUMA_PEERS`, `NODUMA_MODEL`, `NODUMA_BACKEND` | the laboratory | Its shared secret, node list, model and engine address | Credits are not money: they cannot be bought or paid out. --- # Account commands (coming in the next release) Signing in and managing your account from the terminal is being built and is not in a release yet. Source: https://docs.noduma.dev/cli/account-commands/ :::note[Not released yet] The commands on this page are being built and are not in any release. Nothing here works with today's `noduma`. This page will list them, with their options, when they ship. ::: Today, everything about your account is in the [Noduma app](https://app.noduma.dev) and in Noduma desktop: your PCs, your balance, sharing hours and API keys. From the terminal you can already: - read your balance with [`noduma credits`](/cli/credits/), using an API key; - chat with [`noduma chat`](/cli/chat/) and [`noduma agent`](/cli/chat/#noduma-agent), using an API key; - start, stop and inspect sharing on this PC with [`noduma contribute`](/cli/contribute/). The next release is planned to add signing in from a terminal (including over SSH), and listing and managing your PCs, models, balance and API keys, each with JSON output. Until it ships, none of it is a promise of exact names or options. --- # chat and agent noduma chat and noduma agent, Noduma's own terminal clients. Source: https://docs.noduma.dev/cli/chat/ Both use the public API with your API key, from `NODUMA_API_KEY` or `--key-file`. Each answer shows its cost and your balance. Conversations stay in memory, or in a `--save` file readable only by you. ```sh export NODUMA_API_KEY=ndm_k_... noduma chat ``` ## `noduma chat` Chat with Noduma's models in the terminal. | Option | Meaning | |---|---| | `--model NAME` | The model; the first ready one when empty | | `--my-pcs` | Only your own PCs answer, free; it fails when none of your PCs serving the model is sharing now | | `--save FILE` | Keep the conversation in this file on this PC; continued when it exists | | `--key-file FILE` | A file holding the API key, instead of `NODUMA_API_KEY` | | `--url URL` | The API address (default `https://app.noduma.dev/v1`, or `NODUMA_API_URL`) | | `--ca-file FILE` | A PEM certificate authority to trust, for a coordinator with a private one | ```sh noduma chat --model qwen3-8b-q4_k_m --save notes.chat noduma chat --my-pcs ``` ## `noduma agent` The chat, with tools the model may use in the folder you start it in: `read_file`, `list_dir`, `write_file` and `run_command`. - It reads inside that folder freely. Paths with `..` or links that lead out of it are refused before anything is asked. - Every write and every command is shown in full and runs only after you type yes. Without a terminal, the answer is always no. - It takes the same options as `noduma chat`. ```sh cd my-project noduma agent --model qwen3-coder-30b-a3b-instruct-q4_k_m ``` The model's tool calls are text written on someone's PC: read each one before you say yes. On the Community plan the owner of the PC that answers can read what the agent sends, including the files it reads; prefer `--my-pcs` for private code. --- # contribute noduma contribute, sharing this PC in the background, and its start, stop, status, quit and uninstall. Source: https://docs.noduma.dev/cli/contribute/ `noduma contribute` sets this PC up to share in the background: it pairs the PC (in your browser, or with a join code from an invite), installs the engine and a model with [`noduma setup`](/cli/setup/), and adds a login entry (launchd, a systemd user unit, or the user's Windows Run entry; no administrator rights). Every login then starts in **Standby** until you start sharing. See [Sharing controls](/contributors/sharing-controls/). ## `noduma contribute` ```sh noduma contribute # pair in the browser (installers built for Noduma's app), then set up noduma contribute --device FILE # a PC already paired with noduma pair noduma contribute --join ndm_j_... # a join code from a coordinator's invite ``` | Option | Meaning | |---|---| | `--app URL` | The Noduma app's address: with no join code or paired PC, pair this PC in the browser first | | `--device FILE` | The `device.json` saved by browser pairing | | `--join CODE` | A join code from an invite (`ndm_j_...`); asked for when missing. It is secret, like a key | | `--id NAME` | The name of this PC in your account | | `--model NAME` | The model to install: `auto` or a catalog name, as [setup](/cli/setup/) lists them | | `--engine BUILD` | The llama.cpp build: `auto`, `metal`, `cuda`, `cuda12`, `vulkan` or `cpu` | | `--capacity N` | Requests served at the same time (1 to 16); 0 sizes it from this PC's memory | | `--auto-model` | Let Noduma choose this PC's model from its list (not with `--tier2`) | | `--dir DIR` | The installation directory (default `~/.noduma`) | | `--no-service` | Install no background service; print the `noduma share` command instead | | `--desktop` | Use the installed Noduma desktop | | `--ca-file FILE` | The certificate authority of a private coordinator | | `--dev-mode` | Log developer-mode details: job timings and counts, never message text or keys | | `--tier2` | Serve `--model` in Tier 2; the model must be named, and the group's PCs learn this PC's network address | | `--tier2-listen ADDR` | With `--tier2`: the address the encrypted link accepts on, such as `0.0.0.0:7070`; empty, the PC can lead a group but not work in one | | `--tier2-advertise LIST` | With `--tier2-listen`: the `host:port` addresses other PCs reach it at | | `--tier2-open-router` | With `--tier2-listen`: ask your home router to forward that port | | `--tier2-relay` | With `--tier2`: work with PCs it cannot reach directly, through the coordinator | ## `noduma contribute start` Start sharing. Options: `--dir`, `--notify` (show the outcome as a desktop notification), `--hold N` (keep the window open N seconds). `resume` is the same. ## `noduma contribute stop` Stop sharing: running answers finish first, then the engine frees its memory. `pause` is the same. | Option | Meaning | |---|---| | `--now` | Hand running answers to other PCs at once instead of finishing them | | `--wait` | Wait until the engine has freed its memory (up to 130 s) | | `--dir`, `--notify`, `--hold N` | As for start | ## `noduma contribute status` The configuration and what sharing does now. Option: `--dir`. ## `noduma contribute quit` Stop sharing and end Noduma until the next login. Option: `--dir`. ## `noduma contribute auto-model` `noduma contribute auto-model on` lets Noduma choose this PC's model from its list, following demand: a chosen model is downloaded, checked and used only while the PC answers nobody, and at most two models stay on disk. `off` keeps the current model. ## `noduma contribute uninstall` Removes the background service. It asks whether to remove this PC from your account and whether to delete the installation directory (engine, models, key, logs), then reports the space freed. With nobody at the terminal it keeps both, as a reinstall needs. | Option | Meaning | |---|---| | `--remove-pc` | Also remove this PC from your account, without asking | | `--keep-pc` | Keep this PC in your account, for a reinstall, without asking | | `--purge` | Also delete the installation directory | | `--keep-data` | Keep the installation directory, without asking | | `--dir` | The installation directory | A removed PC can be paired again with `noduma contribute`; it gets a new key and starts over, unvetted. --- # coordinator noduma coordinator, for the maintainers of a coordinator and Enterprise installations. Source: https://docs.noduma.dev/cli/coordinator/ The coordinator is what the Noduma maintainers run at `app.noduma.dev`, and what an [Enterprise](/enterprise/) customer runs for itself. It never runs models: it keeps accounts, keys, routing and credits, and routes each request to a PC. `noduma coordinator --help` lists every option. ## `noduma coordinator` ```sh noduma coordinator --state ./coord-state --listen 127.0.0.1:8443 ``` | Option | Meaning | |---|---| | `--state DIR` | The state directory, with the admin socket the commands below use | | `--listen ADDR` | The listen address; a non-loopback one needs `--tls-cert` and `--tls-key`, or `--behind-proxy` | | `--behind-proxy` | A TLS-terminating proxy is in front of a non-loopback address | | `--catalog` | Offer Noduma's list of models with each one's state and price, and serve no other model | | `--database-url-file FILE` | Keep accounts, credits and PC records in PostgreSQL; the file holds the URL | | `--metrics-listen ADDR` | Serve Prometheus metrics, on loopback unless `--metrics-public` | | `--dev-mode` | Log every step of each request and show consumers which PC answered; for your own tests, never text or keys | ## Managing accounts and PCs Each runs against the admin socket of a coordinator's state directory. `noduma coordinator --help` shows its options. | Command | What it does | |---|---| | `noduma coordinator invite` | Create an account; prints its API key, node key and join code once | | `noduma coordinator revoke` | Disable an account's keys | | `noduma coordinator routing` | Set an account's default routing mode | | `noduma coordinator grant` | Grant an account credits (audited) | | `noduma coordinator nodes` | PCs with their reliability, state and flags | | `noduma coordinator vet`, `unvet`, `ban`, `reinstate` | Vet a PC (it then also takes `vetted` requests), or unvet, ban or reinstate it | | `noduma coordinator forget` | Remove an offline PC's record | | `noduma coordinator stats` | Requests, latencies, PC states, free slots | | `noduma coordinator ledger` | The credit history, with the model of each charge | | `noduma coordinator usage` | Use per model, PC and account over the last hour and day | | `noduma coordinator groups` | Who serves each Tier 2 model | | `noduma coordinator network` | Create and manage Ad-Hoc networks, their member accounts and PCs | | `noduma coordinator link` | Join an invited account to an app account, keeping one balance | | `noduma coordinator audit` | Every maintainer action | --- # credits noduma credits, your balance from the terminal. Source: https://docs.noduma.dev/cli/credits/ ## `noduma credits` Your balance, from `GET /v1/account` with the key in `NODUMA_API_KEY`. | Option | Meaning | |---|---| | `--coordinator URL` | The coordinator's address (or `NODUMA_COORDINATOR`); for Noduma's network, `https://app.noduma.dev` | | `--json` | JSON output | | `--ca-file FILE` | A PEM certificate authority to trust, for a coordinator with a private one | ```sh export NODUMA_API_KEY=ndm_k_... noduma credits --coordinator https://app.noduma.dev ``` The fields are those of [Account](/api/account/). Credits are not money: they cannot be bought or paid out. --- # pair noduma pair, pairing this PC with your account in the browser. Source: https://docs.noduma.dev/cli/pair/ ## `noduma pair` Pair this PC with your Noduma account in the browser. The browser opens on this PC; sign in with your verified email and approve the PC with **Pair this PC** and **Approve**. The PC's key is created on the PC and never leaves it. Then give the saved `device.json` to [`noduma contribute`](/cli/contribute/) to set up sharing, or run `noduma contribute` alone, which pairs and sets up in one go when it knows the app's address. | Option | Meaning | |---|---| | `--app URL` | The app's address (HTTPS, or HTTP on loopback for local testing) | | `--label NAME` | The name of this PC shown in the browser (default: this PC's name) | | `--no-open` | Print the pairing link instead of opening the browser, to approve it from another device | | `--dir DIR` | Where to keep this PC's key and identity (default `~/.noduma/paired`) | | `--gpu NAME` | Show this GPU name instead of the detected one | | `--ram GB` | Show this system memory instead of the detected value | | `--vram GB` | Show this video memory instead of the detected value | ```sh noduma pair --no-open ``` Pairing proves the approval with PKCE and a signature from this PC's own key, so a link copied by someone else cannot pair their PC to your account. --- # setup noduma setup, installing a pinned llama.cpp engine and a model that fits this PC. Source: https://docs.noduma.dev/cli/setup/ ## `noduma setup` Install a pinned llama.cpp engine and a model that fits this PC. Every file is fixed by URL, size and SHA-256, downloaded resumably and checked before use. `noduma contribute` runs it for you. | Option | Meaning | |---|---| | `--list` | Show the detected hardware, the builds and the models, without downloading | | `--model NAME` | The model to install: `auto` (the largest of Qwen2.5 7B, 14B and 32B that fits) or a name from `--list` | | `--engine BUILD` | `auto`, `metal`, `cuda`, `cuda12`, `vulkan` or `cpu` | | `--dir DIR` | The installation directory (default `~/.noduma`) | | `--tier2` | Install `--model` to serve it in Tier 2 (the model must be named) | ```sh noduma setup --list noduma setup --model qwen3-8b-q4_k_m ``` `auto` picks Metal on Apple silicon, CUDA when the driver supports the build's CUDA major version, Vulkan or CPU otherwise. It sizes the number of requests served at once from the memory left after the model's weights. The models it can install are the [catalog](/models/). --- # share noduma share, serving this PC's engine to a coordinator in the foreground. Source: https://docs.noduma.dev/cli/share/ `noduma share` is what the background service runs. Run it yourself for a coordinator of your own, a node from an invite, or a PC with its own llama-server. It connects outbound only. ## `noduma share` ```sh export NODUMA_NODE_KEY=ndm_n_... noduma share --coordinator https://coord.example --id gaming-pc \ --llama-server "$(command -v llama-server)" --model-file qwen2.5-7b-instruct-q4_k_m-00001-of-00002.gguf \ --model qwen2.5-7b-instruct-q4_k_m --capacity 4 ``` | Option | Meaning | |---|---| | `--coordinator URL` | The coordinator (HTTPS, or HTTP on loopback) | | `--id NAME` | The node's name, unique within your account | | `--model NAME` | The only model this node serves, named with its quantization as in the catalog | | `--llama-server PATH` | Start and supervise this llama-server instead of using `--backend`: on loopback, with a private key, restarted if it exits | | `--model-file FILE` | The GGUF file for `--llama-server` | | `--backend URL` | The base URL of an engine you run yourself | | `--capacity N` | Requests at once (1 to 16) | | `--context N` | Context tokens per request with `--llama-server` (default 4096) | | `--gpu-layers N` | Model layers on the GPU with `--llama-server` | | `--node-key-file FILE` | A file holding the node key, instead of `NODUMA_NODE_KEY` | | `--config FILE` | The contributor configuration written by `noduma contribute` | | `--device FILE` | The `device.json` saved by browser pairing | | `--report-performance` | Send the engine's CPU, memory and GPU use and its speed for the maintainers' view, when `share` supervises the engine; not with `--device` or `--config`, whose owner switches it in the Noduma app or Noduma desktop | | `--log-file FILE` | Append logs to this file | | `--ca-file FILE` | A certificate authority to trust, for a coordinator with a private one | | `--dev-mode` | Log each job's kind, timings and token counts, never message text or keys | | `--confidential` | Run as a confidential node in a TDX or SEV-SNP VM with an NVIDIA confidential GPU (never run on real hardware) | The Tier 2 options (`--tier2`, `--tier2-listen`, `--tier2-advertise`, `--tier2-memory-gib`, `--tier2-small-model`, `--tier2-small-model-file`, `--tier2-relay`, `--tier2-open-router`, `--rpc-server`) are listed by `noduma share --help`; most people set Tier 2 up with Noduma desktop or `noduma contribute --tier2` instead. See [Tier 2](/contributors/tier-2/). --- # Credits How Noduma measures, prices and settles each answer in credits. Source: https://docs.noduma.dev/concepts/credits/ Credits are not money: they cannot be bought or paid out. They are how Noduma counts what a consumer used and what a contributor gave. ## Getting credits - An account created in the Noduma app starts with no credits. - **Share a PC.** Every answer your PC gives earns credits. See [Earnings](/contributors/earnings/). - **Ask the maintainers.** They can grant credits, and every grant is audited. Write to contact@noduma.dev. - **Use your own PCs.** Answers from your own PCs ([My PCs](/concepts/routing/#own-my-pcs)) are free, so an account with no credits can still use its own PC. Nothing buys credits. ## How an answer is measured The coordinator measures each answer itself; it never uses the token counts a PC reports. 1. **Billing units.** One unit for every 4 bytes of the request sent to the PC and of the answer, about one token each. 2. **Price.** Each model has a price in credits per 1,000 tokens (strictly, per 1,000 billing units). It is the model's base price times a demand factor. - The base price is 1,000 credits times the model's weight: one for about every 5 GB the model takes on a PC (Qwen2.5 7B weighs 1, 14B weighs 2, 32B weighs 4). Each model's base price is on its [model page](/models/). - The demand factor is between 0.5 and 3.0. Once a minute it moves toward the number of requests for the model that had to wait for a PC, or found none, divided by the PCs that serve it; it moves at most 25% a minute. The coordinator counts all of this itself: nothing a PC or a consumer reports moves a price. 3. **Cost.** Units times the price, divided by 1,000, rounded up. The price of a request is the one in force when the coordinator accepted it. A later price change never changes an answer already accepted. `GET /v1/models` shows each model's price now and its base price; see [Models](/api/models/). ## Reservation and a low balance Before a request goes to a PC, the coordinator reserves the cost of the longest answer it could get (the request's `max_tokens`). When the answer ends, the real cost is charged and the rest of the reservation is released. When the balance does not cover the longest answer, the answer is shortened to what the balance covers, as long as that is at least 16 tokens; it then ends with `finish_reason: "length"`. Below that, the request is refused with `402 insufficient_credits`. ## What a contributor earns The contributor whose PC answered earns the full cost of the answer. The earning can be spent as soon as the answer is settled, and nothing takes it back. When a [Tier 2](/concepts/tiers/) group answers, the credits are divided among its PCs by the part of the model each one held. ## Answers that cost nothing - An answer from your own PCs (`Noduma-Routing: own`) is free: nothing is reserved, charged or earned, and it moves no price. - A request that fails before an answer, or an answer the PC cut off as oversized, is not charged. ## Where to see it - `usage.noduma_cost` in every answer, and `usage.noduma_price_per_1k_tokens`: see [Usage and cost](/api/usage-and-cost/). - `GET /v1/account` for the balance: see [Account](/api/account/). - The balance in the Noduma app, in Noduma desktop and with `noduma credits`. --- # Plans Community, Ad-Hoc and Enterprise, what each one is today and who can read a request in each. Source: https://docs.noduma.dev/concepts/plans/ Noduma has three plans. Every account created in the Noduma app is on **Community**. **Ad-Hoc** and **Enterprise** were built as a beta: free on request during the beta, paid later. No price has been set for either. | Plan | What it is | Who chooses the PC that answers | Today | |---|---|---|---| | **Community** | The public network, best effort | Noduma, among every PC that shares; or only your own PCs with [My PCs](/concepts/routing/#own-my-pcs) | Open beta, free | | **Ad-Hoc** | Trusted PCs on Noduma's coordinator: a closed network a maintainer creates for you, or the `trusted` routing mode that reaches only vetted PCs | Your network's PCs, or only vetted PCs | Beta, free on request | | **Enterprise** | The whole system run by you: coordinator, database, Noduma app and every PC | You | Beta, free on request; see [Enterprise](/enterprise/) | ## Community - One account uses the AI and shares PCs, with one balance. - Noduma chooses which PC answers each request. A request names `any` (the default) or `own`; any other [routing mode](/concepts/routing/) is refused with `routing_not_in_plan`. - The owner of the PC that answers can read the request, without knowing who sent it. See [Security and privacy](/security/). - Nothing checks the answers. A maintainer can ban a PC, and a ban shuts out every PC of its account. ## Ad-Hoc Ask the Noduma maintainers at contact@noduma.dev. A maintainer can: - create a **network** for you: a set of member accounts and of PCs a maintainer vetted. A request with `Noduma-Routing: network:` is served only by that network's PCs, and those PCs take no other consumer's request; - mark your account Ad-Hoc, which opens the `trusted` mode: only vetted PCs outside every network answer. ## Enterprise You run everything; nothing of yours reaches Noduma. The install procedure and its known limits are in [Enterprise](/enterprise/). ## Roles After you create your account you choose **Use AI**, **Share my PC** or **Both**. The choice only changes what the Noduma app shows first: it is a view, never a permission, and one balance serves both sides. You can change it under Account. --- # Routing The routing modes, which plan offers each one, and who can read a request in each. Source: https://docs.noduma.dev/concepts/routing/ A request's routing mode says which PCs may answer it, and so who can read it. Send it in the `Noduma-Routing` header of each request; without the header, the account's default mode applies (`any` for an account created in the Noduma app). The answer repeats the mode used in its own `Noduma-Routing` header. The coordinator never falls back from a mode to a less private one: a request that its mode cannot serve fails. | Mode | Who can read your request | Offered to | |---|---|---| | `any` (default) | The owner of the PC that serves it, without knowing who sent it | Every account | | `own` | Only your own PCs, while they share; free | Every account | | `vetted` | Only PCs a maintainer vetted, and their owners | Accounts a maintainer invited | | `trusted` | Only vetted PCs outside every network | Accounts a maintainer marked Ad-Hoc | | `network:` | Only the vetted PCs of that Ad-Hoc network | That network's member accounts | | `confidential` | Only attested confidential-computing PCs; never run on real confidential hardware, so treat it as a design, not a guarantee | Accounts a maintainer invited | A Community account, which every account created in the Noduma app is, may send only `any` and `own`. Any other mode is refused with `403 routing_not_in_plan`; a value that is not a mode at all gets `400 invalid_request`. ## `any` Noduma chooses the PC. Among the PCs that serve the model and have room, it keeps a consumer's requests moving between contributors, then prefers the faster PC, the less loaded one and the more reliable one. The coordinator never sends the PC who you are. ## `own`: My PCs Only the PCs paired to your account answer, and only while they share. The answer is free: nothing is reserved, charged or earned, and it moves no price and no ranking. When none of your PCs serving that model is sharing, the request fails with `503 no_capacity` and the message "None of your PCs serving this model is sharing now"; it never goes to another person's PC. The signed-in chat calls this "Answered by: My PCs", and `noduma chat --my-pcs` sends it. The coordinator still relays the request, as it does every request, and keeps no prompt or answer. ## Redaction In every mode, before the request leaves the coordinator, known secret formats (private keys, API tokens, `password=` values, email addresses) are replaced with placeholders, and the answer gets them back. It covers known formats only. `Noduma-Redaction: off` turns it off for a request. See [Headers](/api/headers/). ## Tier 2 A model split across a group of PCs is served by several PCs together, and each of them can read the request. The model list marks such a model with `"tier": 2`. `confidential` is never served by a group. See [Tiers](/concepts/tiers/). --- # Tiers Tier 1, a whole model on one PC, and Tier 2, a model split across a group of PCs. Source: https://docs.noduma.dev/concepts/tiers/ ## Tier 1: a whole model on one PC Each request runs entirely on one contributor's PC, which holds the whole model. This is how almost every answer is served today. If that PC fails while it answers, the coordinator moves the request to another PC that serves the model, which continues the answer already streamed; it never runs a request twice on two PCs that are both still working. ## Tier 2: a model split across a group of PCs Tier 2 is a model split across a group of PCs: two to four PCs, one **head** and its **workers**. It has a first slice in the coordinator and the agent, and runs on the public coordinator as a trial for Qwen2.5 14B and Qwen2.5 32B. - **The coordinator decides the split.** A PC that holds the model serves it alone, as in Tier 1. Only a model that no PC holds is split, across PCs that opted in, by the memory each offers and the speed the coordinator measured on each. - **The link.** The head runs llama.cpp with the workers' engines as remote devices. Their traffic travels over Noduma's own encrypted link (TLS 1.3, both keys named by the coordinator), never through the coordinator unless the coordinator relays the encrypted link for PCs that cannot reach each other. - **Speed.** Measured across two PCs on one Wi-Fi network (a link of about 3 MB/s): 5.6 to 9.4 tokens a second for a 14B model, against 11.4 for the same split on one machine. A split is slower than one PC whenever the model fits one PC. It has never run across the internet between homes. - **The consumer's protections.** A group whose answers stay under 5 tokens a second is ended and the model is not offered rather than offered slow. A split model is offered only while one PC may leave without the model disappearing: a spare for every part, or a second group. - **Privacy.** Every PC of the group can read the request, and the PCs learn each other's network address. `GET /v1/models` marks a model served this way with `"tier": 2` and a description that says so. - **Credits.** An answer's credits are divided by the part of the model each PC held. - **Safety of the workers.** The engine's server on a worker runs confined (macOS `sandbox-exec`, Linux Landlock and seccomp, a Windows AppContainer): it reads the engine and its copy of the weights, accepts the head's connection, and nothing else. Contributors opt in with Noduma desktop (**Part of a larger model · Tier 2**) or `noduma contribute --tier2`. See [Tier 2 for contributors](/contributors/tier-2/). --- # Share a PC What a contributor's PC needs, what it does, and what its owner gives and gets. Source: https://docs.noduma.dev/contributors/ A contributor shares a PC with the network: it runs a pinned llama.cpp engine with one model from Noduma's catalog, takes requests from the coordinator and earns credits for each answer. The PC connects **outbound** to the coordinator, so it needs no open port. ## Requirements | | | |---|---| | **Systems** | macOS 13 or newer (Apple silicon and Intel); Windows (x64); Linux and WSL on x86-64 (Debian, Ubuntu and relatives for the `.deb`) | | **Engine builds** | Metal on Apple silicon; CPU on Intel Macs; CUDA on Windows (driver for CUDA 12.4 or newer) and on Linux (CUDA 13.4 or 12.8 builds); Vulkan or CPU on Linux. On Linux the GPU builds need glibc 2.38 (Ubuntu 24.04 or newer); older systems get the CPU build | | **Memory** | Enough for a model's weights plus its context. The smallest catalog model, Qwen2.5 7B, is a 4.7 GB download; the largest, Qwen2.5 32B, 19.9 GB. `noduma setup --list` shows what fits this PC | | **Disk** | The engine and the model, at most two models at a time; more with Tier 2 (see [Tier 2](/contributors/tier-2/)) | | **Network** | Outbound HTTPS to `app.noduma.dev`; downloads from GitHub (the engine) and Hugging Face (the models) during setup | | **Account** | An account in the [Noduma app](https://app.noduma.dev) with the role **Share my PC** or **Both** | Noduma's setup chooses the largest of Qwen2.5 7B, 14B and 32B that fits the PC. Any other [catalog model](/models/) that fits can be chosen in Noduma desktop or with `--model`, and, with your consent, the coordinator may move the PC to the model most in demand. ## How it works 1. **Install** Noduma desktop, or the `noduma` command. See [Install](/contributors/install/). 2. **Pair** the PC with your account: Noduma desktop or `noduma contribute` opens the Noduma app in your browser, where you approve the PC with **Pair this PC** and **Approve**. The PC's key is created on the PC and never leaves it. 3. **Set up**: the engine and the model are downloaded, each file checked by SHA-256. 4. **Start sharing.** Every login starts in **Standby**: Noduma keeps only its control connection, loads no model and takes no work until you press **Start sharing**. See [Sharing controls](/contributors/sharing-controls/). 5. **Earn.** Each answer your PC gives earns its full cost in credits. See [Earnings](/contributors/earnings/). A PC paired through the Noduma app takes Community work as soon as it shares, with no approval step. A maintainer may vet a PC by hand, so that it also takes `vetted` requests, or ban it. ## What you should know first - **You can read the requests your PC serves**, and so can anyone with access to your PC. You do not learn who sent them. The [Contributor Terms](https://app.noduma.dev/contributor-terms) say you must not keep, read for any purpose other than answering, publish or use them. - **Your PC's work is not checked.** Noduma relies on honest contributors; a dishonest PC is stopped only by a maintainer's ban. - **Credits are not money**: they cannot be bought or paid out. - **The installers are not signed** with a Windows or Apple developer certificate: Windows and macOS warn on first open. See [Install](/contributors/install/). - Sharing uses your GPU, memory and power while it serves. A stop lets running answers finish, then frees the engine's memory. ## Leaving `noduma contribute uninstall`, **Account › Uninstall** in Noduma desktop, or **Remove this PC** in the Noduma app. Each asks whether to remove the PC from your account and whether to delete the engine and models. See [contribute](/cli/contribute/). --- # Noduma desktop The installed program for consumers and contributors, what it does and how it signs in. Source: https://docs.noduma.dev/contributors/desktop/ Noduma desktop is the installed program, for consumers and contributors. Each [installer](/contributors/install/) holds it with the `noduma` command. ## What it does - **The signed-in chat**, with "Answered by: Any PC / My PCs". Conversations stay on the PC; signing out deletes them. - **This PC**: setup (the engine and a model, each file checked), pairing in your browser, **Start sharing** and **Stop sharing**, and the sharing state. - **Your PCs**, your credits and your sharing hours. - **Account › Uninstall**: stops sharing after running answers, removes the login items, optionally removes this PC from your account and deletes the engine and models, signs Noduma desktop out and removes it. - **About** and **Check for updates**: Noduma desktop says when a newer release exists and points at the download page; it does not install an update itself. Closing the window keeps sharing as it is; only **Quit Noduma** stops it. ## Signing in Noduma desktop signs in through your browser. It shows a code (`XXXX-XXXX`) that you type on the approval page of the Noduma app. The session lasts 30 days, can be revoked in the Noduma app, and is kept in the operating system's credential store. ## Setting up this PC Under **This PC**, choose: - **One whole model on this PC · Tier 1**: any catalog model that fits this PC. The automatic choice stays among Qwen2.5 7B, 14B and 32B. - **Part of a larger model · Tier 2**: a pinned model the network splits (14B or 32B). **Allow the coordinator relay** is a separate choice, off by default. See [Tier 2](/contributors/tier-2/). Review the memory, download and disk estimates, and give consent. Setup downloads and checks the files, then returns to **Standby**. **Change setup** lets running answers finish before the model changes. **Send engine readings to Noduma**, off by default and also in the Noduma app's Your PCs, sends the engine's CPU, memory and GPU use and its speed for the maintainers' view; Noduma desktop shows the same figures for this PC whether it is on or off. Nothing about the rest of the machine is read, and no price, charge or dispatch depends on it. --- # Earnings What a shared PC earns, when the credits can be spent, and what moves a PC up the order. Source: https://docs.noduma.dev/contributors/earnings/ Credits are not money: they cannot be bought or paid out. What your PCs earn you spend on the network's AI, from the same account and balance. ## What an answer earns Your PC earns the full cost of each answer it gives: the billing units the coordinator measured (one for every 4 bytes of request and answer) times the model's price in force when the request was accepted. A larger model has a higher base price, for the memory it takes from the PC; demand moves the price between half and three times the base. See [Credits](/concepts/credits/). - The credits can be spent as soon as the answer is settled, and nothing takes them back. - In a [Tier 2](/contributors/tier-2/) group, an answer's credits are divided by the part of the model each PC held. - Answers to its owner's own requests (My PCs) are free: they earn nothing and cost nothing. - Standby earns nothing. ## Who gets the next request Among the PCs that serve the model and have room, the coordinator first keeps each consumer's requests moving between contributors, then prefers the faster PC (measured by the coordinator from the answers it relays), then the less loaded one, then the more reliable one. Reliability falls with crashes and faults and only orders dispatch; it never shuts a PC out. ## Where to see it The balance in the Noduma app and in Noduma desktop, and `noduma credits`. "Download my data" in the Noduma app gives the whole credit history as JSON and CSV. --- # Install Install Noduma desktop and the noduma command on macOS, Windows or Linux, and pair the PC. Source: https://docs.noduma.dev/contributors/install/ Each installer holds Noduma desktop and the `noduma` command. Sign in to the [Noduma app](https://app.noduma.dev): it offers the installer for your system, from the latest release whose signed list of files verifies. The installers are built by each release whose files changed. They are **not signed** with an Apple Developer ID or a Windows (Authenticode) certificate and not notarized, so the first open asks for one approval. They have been built and started in containers and on the maintainers' machines, not yet on clean Windows, Mac and Ubuntu machines. **macOS** `Noduma-Desktop.dmg`, for macOS 13 or newer, Apple silicon and Intel (one universal program). 1. Open the `.dmg` and drag **Noduma** to Applications. 2. Open Noduma. macOS refuses the first open because the program is signed ad hoc only: choose **Done**, then **System Settings › Privacy & Security › Open Anyway**. 3. Noduma desktop signs you in through your browser: it shows a code (`XXXX-XXXX`) that you type on the approval page. 4. Under **This PC**, set it up and pair it, then press **Start sharing**. From a terminal, `install.sh` with `noduma-darwin-universal.tar.gz` installs the same program to `~/Applications` and `noduma` beside it. **Windows** `Noduma-Desktop-Setup.exe`, for Windows x64. It installs for your user only, adds `noduma` to your PATH and opens Noduma desktop. 1. Run the installer. SmartScreen warns because it is unsigned: **More info**, then **Run anyway**. 2. Without the WebView2 Runtime, the installer installs it from Microsoft for your user. 3. Sign in with the code Noduma desktop shows, set this PC up under **This PC**, pair it, and press **Start sharing**. Noduma also adds a notification-area icon with **Start sharing** and **Stop sharing**. **Linux** `noduma-desktop-amd64.deb`, for Debian, Ubuntu and relatives on x86-64: ```sh sudo apt install ./noduma-desktop-amd64.deb ``` It installs Noduma desktop with GTK and WebKitGTK, and `noduma`. Open Noduma from the applications menu, sign in with the code it shows, set this PC up, pair it and press **Start sharing**. On other distributions, or on a server without a desktop, use the tarball `noduma-linux-amd64.tar.gz` with the release's `install.sh`, which checks the tarball against the release's `SHA256SUMS`, installs `noduma` to `~/.local/bin` and starts `noduma contribute`: ```sh NODUMA_RELEASE_URL= sh install.sh ``` `NODUMA_NO_DESKTOP=1` skips Noduma desktop. On WSL without systemd, Noduma cannot start at login: `noduma contribute` prints the `noduma share` command to run instead. ## Without Noduma desktop `noduma contribute` sets up the same thing from a terminal: ```sh noduma contribute # pairs this PC in your browser, installs the engine and a model, starts in the background noduma contribute start # start sharing noduma contribute status # what it does now ``` `--no-open` on `noduma pair` prints the pairing link instead of opening a browser, to approve it on another device. See [contribute](/cli/contribute/), [pair](/cli/pair/) and [setup](/cli/setup/). ## What gets installed - `~/.noduma` (the installation directory): the pinned llama.cpp engine, the model files, this PC's key (readable only by you) and the log `share.log`. - A login entry that starts Noduma in standby at every login, with no administrator rights: launchd on macOS, a systemd user unit on Linux, the user's Run entry on Windows. - Noduma desktop, and on Windows the notification-area icon and Start-menu shortcuts. Every download of the engine and the models is fixed by URL, size and SHA-256 in the release and checked before use. --- # Sharing controls Standby, Start sharing, Stop sharing, sharing hours and the sharing states. Source: https://docs.noduma.dev/contributors/sharing-controls/ A PC shares only when its owner says so. Every login starts in **Standby**: Noduma keeps only its control connection to the coordinator, loads no model and takes no work. ## Start and stop | Where | Start | Stop | |---|---|---| | Noduma desktop | **Start sharing** | **Stop sharing** | | The Noduma app, Your PCs | **Start sharing** | **Stop sharing** | | Windows notification-area icon | **Start sharing** | **Stop sharing** | | Terminal | `noduma contribute start` | `noduma contribute stop [--now] [--wait]` | - A start lasts until you stop it or the PC restarts. - A stop lets running answers finish within their deadline, then frees the engine's memory. `--now` hands running answers to other PCs at once; `--wait` waits until the engine has freed its memory. - `noduma contribute quit` stops sharing and ends Noduma until the next login. Closing Noduma desktop's window does not stop sharing; **Quit Noduma** does. - A PC that is off gets no work of any kind, and standby moves no reliability and no credits. ## Sharing hours In the Noduma app you can set weekly sharing hours in your time zone. Outside them, sharing stops. Inside them, sharing starts by itself only if you turn on auto-start and agree to it. ## States | State | Meaning | |---|---| | **Not set up** | No engine or model installed yet | | **Standby** | Connected, nothing loaded, no work taken | | **Starting** | Loading the model after a start | | **Sharing** | Taking requests | | **Stopping** | Finishing running answers before freeing memory | | **Off schedule** | Outside the sharing hours | | **Offline** | Not connected to the coordinator | ## The model the PC serves A PC serves one model at a time. With your consent (asked by Noduma desktop's setup, on by default there; `noduma contribute auto-model on|off`), the coordinator may move the PC to the catalog model most in demand that fits it: the model is downloaded and checked first, the PC switches only while it answers nobody, and at most two models stay on disk. A PC in Tier 2 is never moved. ## The log `~/.noduma/share.log` on the PC. It holds no request or answer text. --- # Tier 2 for contributors Opting a PC into Tier 2, a model split across a group of PCs, and what it asks of the PC. Source: https://docs.noduma.dev/contributors/tier-2/ Tier 2 is a model split across a group of PCs. It is a trial on the public coordinator for Qwen2.5 14B and Qwen2.5 32B. Read [Tiers](/concepts/tiers/) for how the coordinator forms groups and what it was measured at. ## Opting in - **Noduma desktop:** under **This PC**, **Part of a larger model · Tier 2**, choose the model, review the estimates and give consent. **Allow the coordinator relay** is a separate choice, off by default. - **Terminal:** `noduma contribute --tier2 --model qwen2.5-14b-instruct-q4_k_m` (the model must be named), with `--tier2-listen` and `--tier2-advertise` for a PC that other PCs can reach, `--tier2-open-router` to ask your home router to forward that port, and `--tier2-relay` to work with PCs it cannot reach directly. See [contribute](/cli/contribute/). An installed contributor takes part only while it shares; a stop tells the coordinator first, so the group finishes its answers. The Noduma app, the notification-area icon and the installers do not show Tier 2. ## What it asks of the PC - **Disk:** the large model and the small one (Qwen2.5 7B), which the PC serves alone while it is in no group; the coordinator measures the PC's speed with it. A PC that can work in another PC's group keeps a second copy of the large model's weights, about the model's size again, written only if 4 GiB stay free. - **Network:** the PCs of a group learn each other's network address and exchange the engine's traffic over an encrypted link. With the relay, the coordinator carries that link for PCs that cannot reach each other, without being able to read it. - **Privacy:** every PC of a group can read the requests the group serves. - **Confinement:** on a worker, the engine's server runs confined (macOS `sandbox-exec`, Linux Landlock and seccomp from kernel 6.7, a Windows AppContainer). A PC that cannot be confined says so and is grouped only among PCs the maintainers vetted. A PC in Tier 2 serves only the model it named at setup; the coordinator never moves it to another model. --- # Enterprise Noduma run entirely by you, in your own Kubernetes cluster, with your own PCs. Source: https://docs.noduma.dev/enterprise/ The Enterprise plan is Noduma run entirely by you: the coordinator, its database, the maintainers' dashboard, the Noduma app and every contributor PC are in your environment, and nothing of yours reaches Noduma. Your machines run the models; Noduma provides none. It is a beta, free on request: write to contact@noduma.dev. ## What you receive - The source at a release tag (`vX.Y.Z`), from which you build the images and the installers yourself. The license under which you receive it is not decided yet; ask before you redistribute anything. - A Kubernetes overlay with every value of yours as a placeholder, and two scripts: one that creates the Secrets and one that renders the manifests with your values. - Noduma's release public key, to verify what Noduma publishes. ## What runs where | Part | Where | Reaches | |---|---|---| | Coordinator, with the maintainers' dashboard beside it | Your cluster, one replica | Its PostgreSQL. PCs and consumers reach it at your coordinator's name | | PostgreSQL 17 | Your cluster, or a database you run elsewhere | Nothing | | The Noduma app | Your cluster | Its PostgreSQL, the coordinator's private enrollment listener, your mail provider's API, your release bucket | | Contributor PCs | Your PCs | Your app to pair, then your coordinator. Setup downloads the pinned engine (GitHub) and models (Hugging Face) unless you place them yourself | No component calls a Noduma name, Noduma's registry or Noduma's buckets. ## What you need - A Kubernetes cluster you control (1.28 or newer), an ingress controller that ends TLS and does not buffer streamed responses, and a default storage class. - Two public DNS names of your own (one for the coordinator, one for the app) with TLS certificates. - A container registry, a mail account with a Resend-compatible API for the app's sign-in mail, and an S3-compatible bucket for the installers and their signed list. - `kubectl`, `openssl`, `docker` and Go on the machine you install from. ## The procedure, in short 1. Build and push the coordinator and app images from the release tag. 2. Create the Secrets (database passwords, the enrollment token and certificate, the app's keys); no value is printed. 3. Make your own release signing key, and keep the secret key outside the cluster. 4. Render the manifests with your names, registry, mail and bucket, and apply them. 5. Build the installers with your app's address, so your PCs pair with your app; sign the installers' list with your key and upload it. 6. Create your first maintainer account through the coordinator's admin socket, and open the dashboard with `kubectl port-forward`. 7. Pair one PC, let it set up a model, create an API key in your app, grant credits, and send one request. The complete procedure, with every command, is `docs/ENTERPRISE.md` in the source you receive. Tier 1 and Tier 2 work as on Noduma's own coordinator. ## Running PCs from the terminal Each PC needs only the `noduma` command: `noduma contribute` pairs the PC with your app in a browser and sets it up; `noduma pair --no-open` prints the pairing link to approve from another device. See [contribute](/cli/contribute/) and [pair](/cli/pair/). ## Updates Every release is a tag. Verify what Noduma published with Noduma's key, build the new images, render and apply. The coordinator and the app apply their own database migrations at start; copy both databases first, because once a release's migrations have run no older coordinator starts. ## Support During the beta, support is best effort by email, with no response time promised. It covers this procedure on Kubernetes, the coordinator, its migrations, the Noduma app, the dashboard and the installers of a released tag built without changes. Never send keys, passwords, prompts, answers or personal data. ## Known limits - The coordinator's pages still show footer links to Noduma's homepage and status page, and its "not enough credits" message names Noduma's app. Following such a link is a person's choice; the installation sends nothing. - The app sends mail through a Resend-compatible API only. - No license, price or contract is decided. - Installations without internet access for the engine and model downloads are not documented yet. --- # FAQ Short answers to the questions people ask first. Source: https://docs.noduma.dev/faq/ ## Which models can I use? Noduma serves only the models of its catalog: each one downloaded from a pinned source, at a pinned revision, and checked by SHA-256 before a PC runs it. A request for any other name is refused with `404 model_not_found`. The list, with each model's state and price, is at `GET /v1/models`; each model has its own [page](/models/). ## Why does a model say `not_available`? It is on Noduma's list, but no PC serves it right now. Try another model, or later: a request for it from an account that could pay for the answer counts as demand, which raises its price and can move a PC whose owner consented to that model. ## Can I buy credits? No. Credits are not money: they cannot be bought or paid out. Earn them by [sharing a PC](/contributors/), or ask the maintainers at contact@noduma.dev. ## Can I be paid for sharing my PC? No. There is no payment system. What your PC earns, you spend on the network's AI. ## Who can read what I send? On the Community plan, the owner of the PC that answers, without knowing who sent it. Only your own PCs answer with [My PCs](/concepts/routing/#own-my-pcs). See [Security and privacy](/security/). ## Is the API compatible with OpenAI's? With a subset: `GET /v1/models` and `POST /v1/chat/completions`, with streaming and tools, text only, plus Noduma's own `GET /v1/account`. Point an OpenAI SDK at `https://app.noduma.dev/v1`. Embeddings, images, audio and the completions endpoint are not served. See the [API Reference](/api/). ## How long can an answer be? Up to 8,192 tokens when you set `max_tokens`. Without it, 1,024 tokens, or 3,072 for a model that thinks first. PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. ## Are answers checked? No. Nothing checks that an answer is correct or that a PC ran the model it claims; a maintainer can ban a PC that cheats. ## Does a PC need an open port? No. It connects outbound to the coordinator. Only a Tier 2 worker listens, for the PCs of its group. ## Can I run Noduma on my own servers? Yes, with the [Enterprise](/enterprise/) plan: the whole system in your own Kubernetes cluster. ## Where do I report abuse or a security problem? contact@noduma.dev. See the [Abuse Policy](https://app.noduma.dev/abuse). --- # Introduction What Noduma is, what you can build with it today, and where to start. Source: https://docs.noduma.dev/

The world is one big datacenter. Let's connect it.

Share your GPU and RAM. Run AI. Earn compute for your own models.

Noduma connects PCs that people share to run AI. People who use the network's AI are **consumers**; people who share a PC are **contributors**; the **coordinator**, run by the Noduma maintainers, routes each request to one PC and keeps the credits. One account does both, with one balance: the credits your PCs earn are the credits you spend. Noduma is an open beta. Anyone can create an account in the [Noduma app](https://app.noduma.dev). ## What you can do today - **Call the API.** An OpenAI-compatible chat-completions API at `https://app.noduma.dev/v1`, with streaming and tools, for every account with an API key. Any OpenAI SDK works by changing the base URL. Start with the [Quickstart](/quickstart/). - **Chat.** The signed-in chat in the Noduma app and in Noduma desktop, the [chat page](https://chat.noduma.dev) that takes an API key, and `noduma chat` in a terminal. - **Share a PC.** Install Noduma desktop or the `noduma` command, pair the PC with your account and press **Start sharing**. Each answer your PC gives earns credits. See [Contributors](/contributors/). - **Run Noduma yourself.** The Enterprise plan is the whole system in your own environment. See [Enterprise](/enterprise/). ## What Noduma is not, yet - **Not money.** Credits are not money: they cannot be bought or paid out. There is no payment system. - **Not private from the PC that answers.** On the Community plan, the owner of the PC that answers can read the request, without knowing who sent it. Read [Security and privacy](/security/) before you send anything sensitive. - **Not checked.** Nothing checks that an answer is correct or that a PC ran the model it claims. - **Only its own models.** Noduma serves only the [models of its catalog](/models/), each downloaded from a pinned source and checked by SHA-256. ## Where to go next | You want to | Read | |---|---| | Send a first request in two minutes | [Quickstart](/quickstart/) | | Use the Python or JavaScript OpenAI SDK | [SDK examples](/sdk-examples/) | | Know every field, header and error | [API Reference](/api/) | | Understand plans, credits and routing | [Plans](/concepts/plans/), [Credits](/concepts/credits/), [Routing](/concepts/routing/) | | Share your GPU and RAM | [Contributors](/contributors/) | | Use the terminal | [CLI](/cli/) | | See what changed | [Changelog](/changelog/) | For AI tools, this documentation is also at [`/llms.txt`](/llms.txt) and, in one file, [`/llms-full.txt`](/llms-full.txt); every page has a Markdown copy. --- # Continue Use Noduma's models in the Continue coding assistant as an OpenAI-compatible provider. Configured, not yet run live. Source: https://docs.noduma.dev/integrations/continue/ :::caution[Configured, not yet run live] These settings follow from Noduma's OpenAI-compatible API and Continue's `openai` provider. Nobody has run Continue against Noduma's API yet. If you do, tell the maintainers what worked at contact@noduma.dev. ::: Continue can use any OpenAI-compatible server through its `openai` provider with an `apiBase`. In Continue's `config.yaml`: ```yaml models: - name: Noduma Qwen3 Coder 30B-A3B provider: openai model: qwen3-coder-30b-a3b-instruct-q4_k_m apiBase: https://app.noduma.dev/v1 apiKey: ndm_k_... roles: [chat, edit] ``` - Use a model name from `GET /v1/models` whose `noduma.state` is `ready`. The catalog's code models are Qwen3 Coder 30B-A3B and Qwen2.5 Coder 14B; see [Models](/models/). - Noduma serves chat completions only. Autocomplete that needs a completions or fill-in-the-middle endpoint does not work. - Every request Continue sends is charged like any request; keep an eye on the balance. - Your code goes to the PC that answers, whose owner can read it. Read [Security and privacy](/security/) first, and prefer [My PCs](/concepts/routing/#own-my-pcs) for private code. --- # Open WebUI Use Noduma's models in Open WebUI as an OpenAI-compatible connection. Configured, not yet run live. Source: https://docs.noduma.dev/integrations/open-webui/ :::caution[Configured, not yet run live] These settings follow from Noduma's OpenAI-compatible API and Open WebUI's OpenAI connection. Nobody has run Open WebUI against Noduma's API yet. If you do, tell the maintainers what worked at contact@noduma.dev. ::: Open WebUI talks to any server with the OpenAI chat-completions interface. 1. Create an API key in the Noduma app under **API keys**. 2. In Open WebUI, open **Admin Settings › Connections** and add an **OpenAI API** connection: - **URL:** `https://app.noduma.dev/v1` - **Key:** your `ndm_k_...` key 3. Save. Open WebUI reads the model list from `GET /v1/models`; Noduma lists every model of its catalog, including those no PC serves right now. Choose one whose `noduma.state` is `ready`; see [Models](/api/models/). What to expect: - Text only: Noduma accepts text content, not images or audio. - A thinking model writes its reasoning inside `…` at the start of the answer. - Each answer's cost is in `usage.noduma_cost`, which Open WebUI may not show; the balance is in the Noduma app. - Open WebUI may send requests of its own (titles, tags, follow-up suggestions) to the same model, and each one is charged like any request. --- # Models Every model Noduma serves, with its API name, download size and base price. Source: https://docs.noduma.dev/models/ Noduma serves only the models of its catalog. Each one is downloaded from its publisher's pinned files on Hugging Face (or ggml-org's), at a pinned revision, and every file is checked by SHA-256 before a PC runs it. A request for any other name is refused with `404 model_not_found`. Whether a PC serves a model now, and its price now, is in [`GET /v1/models`](/api/models/). The base price below is the price at a demand factor of 1; demand moves it between half and three times that. Credits are not money: they cannot be bought or paid out. | Model | API name (`model`) | Kind | Download | Base price (credits per 1,000 tokens) | |---|---|---|---|---| | [Qwen2.5 32B](/models/qwen2-5-32b-instruct-q4_k_m/) | `qwen2.5-32b-instruct-q4_k_m` | General chat | 19.9 GB | 4,000 | | [Qwen3 30B-A3B](/models/qwen3-30b-a3b-q4_k_m/) | `qwen3-30b-a3b-q4_k_m` | General chat; thinks before it answers | 18.6 GB | 4,000 | | [Qwen3 Coder 30B-A3B](/models/qwen3-coder-30b-a3b-instruct-q4_k_m/) | `qwen3-coder-30b-a3b-instruct-q4_k_m` | Code | 18.0 GB | 4,000 | | [Gemma 4 26B-A4B](/models/gemma-4-26b-a4b-it-q4_0/) | `gemma-4-26b-a4b-it-q4_0` | General chat | 14.4 GB | 3,000 | | [gpt-oss 20B](/models/gpt-oss-20b-mxfp4/) | `gpt-oss-20b-mxfp4` | General chat; thinks before it answers | 12.1 GB | 2,000 | | [Phi-4](/models/phi-4-q4_k/) | `phi-4-q4_k` | General chat | 9.1 GB | 2,000 | | [Qwen2.5 14B](/models/qwen2-5-14b-instruct-q4_k_m/) | `qwen2.5-14b-instruct-q4_k_m` | General chat | 9.0 GB | 2,000 | | [Qwen2.5 Coder 14B](/models/qwen2-5-coder-14b-instruct-q4_k_m/) | `qwen2.5-coder-14b-instruct-q4_k_m` | Code | 9.0 GB | 2,000 | | [Ministral 3 14B](/models/ministral-3-14b-instruct-2512-q4_k_m/) | `ministral-3-14b-instruct-2512-q4_k_m` | General chat | 8.2 GB | 2,000 | | [Gemma 4 12B](/models/gemma-4-12b-it-q4_0/) | `gemma-4-12b-it-q4_0` | General chat | 7.0 GB | 1,000 | | [Qwen3 8B](/models/qwen3-8b-q4_k_m/) | `qwen3-8b-q4_k_m` | General chat; thinks before it answers | 5.0 GB | 1,000 | | [Qwen2.5 7B](/models/qwen2-5-7b-instruct-q4_k_m/) | `qwen2.5-7b-instruct-q4_k_m` | General chat | 4.7 GB | 1,000 | --- # Gemma 4 12B Gemma 4 12B on Noduma (gemma-4-12b-it-q4_0), its download, base price and how to call it. Source: https://docs.noduma.dev/models/gemma-4-12b-it-q4_0/ | | | |---|---| | **API name** | `gemma-4-12b-it-q4_0` | | **Kind** | General chat | | **Download** | 7.0 GB in 1 file, each checked by SHA-256 | | **Base price** | 1,000 credits per 1,000 tokens (weight 1) | | **Default answer length** | 1,024 tokens | | **Source** | `google/gemma-4-12B-it-qat-q4_0-gguf` on Hugging Face, revision `29d097773436` | | **Setup** | Installed when it is named (Noduma desktop's list, `noduma setup --model`) or when the coordinator moves a PC to it, with the owner's consent | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "gemma-4-12b-it-q4_0", "messages": [{"role": "user", "content": "Hello"}]}' ``` PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Gemma 4 26B-A4B Gemma 4 26B-A4B on Noduma (gemma-4-26b-a4b-it-q4_0), its download, base price and how to call it. Source: https://docs.noduma.dev/models/gemma-4-26b-a4b-it-q4_0/ | | | |---|---| | **API name** | `gemma-4-26b-a4b-it-q4_0` | | **Kind** | General chat | | **Download** | 14.4 GB in 1 file, each checked by SHA-256 | | **Base price** | 3,000 credits per 1,000 tokens (weight 3) | | **Default answer length** | 1,024 tokens | | **Source** | `google/gemma-4-26B-A4B-it-qat-q4_0-gguf` on Hugging Face, revision `d1c082be9cf3` | | **Setup** | Installed when it is named (Noduma desktop's list, `noduma setup --model`) or when the coordinator moves a PC to it, with the owner's consent | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "gemma-4-26b-a4b-it-q4_0", "messages": [{"role": "user", "content": "Hello"}]}' ``` PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # gpt-oss 20B gpt-oss 20B on Noduma (gpt-oss-20b-mxfp4), its download, base price and how to call it. Source: https://docs.noduma.dev/models/gpt-oss-20b-mxfp4/ | | | |---|---| | **API name** | `gpt-oss-20b-mxfp4` | | **Kind** | General chat; thinks before it answers | | **Download** | 12.1 GB in 1 file, each checked by SHA-256 | | **Base price** | 2,000 credits per 1,000 tokens (weight 2) | | **Default answer length** | 3,072 tokens, because the reasoning is part of the answer | | **Source** | `ggml-org/gpt-oss-20b-GGUF` on Hugging Face, revision `41e8a94d15d6` | | **Setup** | Installed when it is named (Noduma desktop's list, `noduma setup --model`) or when the coordinator moves a PC to it, with the owner's consent | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "gpt-oss-20b-mxfp4", "messages": [{"role": "user", "content": "Hello"}]}' ``` It writes its reasoning at the start of the answer's `content`, between `` and ``, then the answer. The reasoning is charged as part of the answer, and is removed from the conversation before a later request reaches a PC. PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Ministral 3 14B Ministral 3 14B on Noduma (ministral-3-14b-instruct-2512-q4_k_m), its download, base price and how to call it. Source: https://docs.noduma.dev/models/ministral-3-14b-instruct-2512-q4_k_m/ | | | |---|---| | **API name** | `ministral-3-14b-instruct-2512-q4_k_m` | | **Kind** | General chat | | **Download** | 8.2 GB in 1 file, each checked by SHA-256 | | **Base price** | 2,000 credits per 1,000 tokens (weight 2) | | **Default answer length** | 1,024 tokens | | **Source** | `mistralai/Ministral-3-14B-Instruct-2512-GGUF` on Hugging Face, revision `74fac473c433` | | **Setup** | Installed when it is named (Noduma desktop's list, `noduma setup --model`) or when the coordinator moves a PC to it, with the owner's consent | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "ministral-3-14b-instruct-2512-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}' ``` PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Phi-4 Phi-4 on Noduma (phi-4-q4_k), its download, base price and how to call it. Source: https://docs.noduma.dev/models/phi-4-q4_k/ | | | |---|---| | **API name** | `phi-4-q4_k` | | **Kind** | General chat | | **Download** | 9.1 GB in 1 file, each checked by SHA-256 | | **Base price** | 2,000 credits per 1,000 tokens (weight 2) | | **Default answer length** | 1,024 tokens | | **Source** | `microsoft/phi-4-gguf` on Hugging Face, revision `6edc2ef6664b` | | **Setup** | Installed when it is named (Noduma desktop's list, `noduma setup --model`) or when the coordinator moves a PC to it, with the owner's consent | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "phi-4-q4_k", "messages": [{"role": "user", "content": "Hello"}]}' ``` PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Qwen2.5 14B Qwen2.5 14B on Noduma (qwen2.5-14b-instruct-q4_k_m), its download, base price and how to call it. Source: https://docs.noduma.dev/models/qwen2-5-14b-instruct-q4_k_m/ | | | |---|---| | **API name** | `qwen2.5-14b-instruct-q4_k_m` | | **Kind** | General chat | | **Download** | 9.0 GB in 3 files, each checked by SHA-256 | | **Base price** | 2,000 credits per 1,000 tokens (weight 2) | | **Default answer length** | 1,024 tokens | | **Source** | `Qwen/Qwen2.5-14B-Instruct-GGUF` on Hugging Face, revision `b466e1f8c071` | | **Setup** | One of the three models Noduma's setup chooses by itself, by the memory a PC has | | **Tier 2** | The public coordinator also splits it across a group of PCs, as a trial ([Tiers](/concepts/tiers/)) | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "qwen2.5-14b-instruct-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}' ``` PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Qwen2.5 32B Qwen2.5 32B on Noduma (qwen2.5-32b-instruct-q4_k_m), its download, base price and how to call it. Source: https://docs.noduma.dev/models/qwen2-5-32b-instruct-q4_k_m/ | | | |---|---| | **API name** | `qwen2.5-32b-instruct-q4_k_m` | | **Kind** | General chat | | **Download** | 19.9 GB in 5 files, each checked by SHA-256 | | **Base price** | 4,000 credits per 1,000 tokens (weight 4) | | **Default answer length** | 1,024 tokens | | **Source** | `Qwen/Qwen2.5-32B-Instruct-GGUF` on Hugging Face, revision `a15e3cc10f8b` | | **Setup** | One of the three models Noduma's setup chooses by itself, by the memory a PC has | | **Tier 2** | The public coordinator also splits it across a group of PCs, as a trial ([Tiers](/concepts/tiers/)) | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "qwen2.5-32b-instruct-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}' ``` PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Qwen2.5 7B Qwen2.5 7B on Noduma (qwen2.5-7b-instruct-q4_k_m), its download, base price and how to call it. Source: https://docs.noduma.dev/models/qwen2-5-7b-instruct-q4_k_m/ | | | |---|---| | **API name** | `qwen2.5-7b-instruct-q4_k_m` | | **Kind** | General chat | | **Download** | 4.7 GB in 2 files, each checked by SHA-256 | | **Base price** | 1,000 credits per 1,000 tokens (weight 1) | | **Default answer length** | 1,024 tokens | | **Source** | `Qwen/Qwen2.5-7B-Instruct-GGUF` on Hugging Face, revision `bb5d59e06d95` | | **Setup** | One of the three models Noduma's setup chooses by itself, by the memory a PC has | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "qwen2.5-7b-instruct-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}' ``` PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Qwen2.5 Coder 14B Qwen2.5 Coder 14B on Noduma (qwen2.5-coder-14b-instruct-q4_k_m), its download, base price and how to call it. Source: https://docs.noduma.dev/models/qwen2-5-coder-14b-instruct-q4_k_m/ | | | |---|---| | **API name** | `qwen2.5-coder-14b-instruct-q4_k_m` | | **Kind** | Code | | **Download** | 9.0 GB in 2 files, each checked by SHA-256 | | **Base price** | 2,000 credits per 1,000 tokens (weight 2) | | **Default answer length** | 1,024 tokens | | **Source** | `Qwen/Qwen2.5-Coder-14B-Instruct-GGUF` on Hugging Face, revision `d0a692ef765e` | | **Setup** | Installed when it is named (Noduma desktop's list, `noduma setup --model`) or when the coordinator moves a PC to it, with the owner's consent | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "qwen2.5-coder-14b-instruct-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}' ``` PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Qwen3 30B-A3B Qwen3 30B-A3B on Noduma (qwen3-30b-a3b-q4_k_m), its download, base price and how to call it. Source: https://docs.noduma.dev/models/qwen3-30b-a3b-q4_k_m/ | | | |---|---| | **API name** | `qwen3-30b-a3b-q4_k_m` | | **Kind** | General chat; thinks before it answers | | **Download** | 18.6 GB in 1 file, each checked by SHA-256 | | **Base price** | 4,000 credits per 1,000 tokens (weight 4) | | **Default answer length** | 3,072 tokens, because the reasoning is part of the answer | | **Source** | `Qwen/Qwen3-30B-A3B-GGUF` on Hugging Face, revision `e4d4bafdfb96` | | **Setup** | Installed when it is named (Noduma desktop's list, `noduma setup --model`) or when the coordinator moves a PC to it, with the owner's consent | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "qwen3-30b-a3b-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}' ``` It writes its reasoning at the start of the answer's `content`, between `` and ``, then the answer. The reasoning is charged as part of the answer, and is removed from the conversation before a later request reaches a PC. PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Qwen3 8B Qwen3 8B on Noduma (qwen3-8b-q4_k_m), its download, base price and how to call it. Source: https://docs.noduma.dev/models/qwen3-8b-q4_k_m/ | | | |---|---| | **API name** | `qwen3-8b-q4_k_m` | | **Kind** | General chat; thinks before it answers | | **Download** | 5.0 GB in 1 file, each checked by SHA-256 | | **Base price** | 1,000 credits per 1,000 tokens (weight 1) | | **Default answer length** | 3,072 tokens, because the reasoning is part of the answer | | **Source** | `Qwen/Qwen3-8B-GGUF` on Hugging Face, revision `7c41481f57cb` | | **Setup** | Installed when it is named (Noduma desktop's list, `noduma setup --model`) or when the coordinator moves a PC to it, with the owner's consent | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "qwen3-8b-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}' ``` It writes its reasoning at the start of the answer's `content`, between `` and ``, then the answer. The reasoning is charged as part of the answer, and is removed from the conversation before a later request reaches a PC. PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Qwen3 Coder 30B-A3B Qwen3 Coder 30B-A3B on Noduma (qwen3-coder-30b-a3b-instruct-q4_k_m), its download, base price and how to call it. Source: https://docs.noduma.dev/models/qwen3-coder-30b-a3b-instruct-q4_k_m/ | | | |---|---| | **API name** | `qwen3-coder-30b-a3b-instruct-q4_k_m` | | **Kind** | Code | | **Download** | 18.0 GB in 1 file, each checked by SHA-256 | | **Base price** | 4,000 credits per 1,000 tokens (weight 4) | | **Default answer length** | 1,024 tokens | | **Source** | `ggml-org/Qwen3-Coder-30B-A3B-Instruct-GGUF` on Hugging Face, revision `ef85c7f175f0` | | **Setup** | Installed when it is named (Noduma desktop's list, `noduma setup --model`) or when the coordinator moves a PC to it, with the owner's consent | Whether a PC serves it now, and its price now: [`GET /v1/models`](/api/models/). ## Call it ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "qwen3-coder-30b-a3b-instruct-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}' ``` PCs set up by Noduma hold 4,096 tokens of context for each request, prompt and answer together. --- # Quickstart From a new account to your first answer through the API. Source: https://docs.noduma.dev/quickstart/ 1. **Create your account.** Open the [Noduma app](https://app.noduma.dev), choose **Create your account** and confirm your email with the link or the 6-digit code it sends. Choose **Use AI** or **Both**. 2. **Get credits.** An account created in the Noduma app starts with no credits. Earn them by [sharing a PC](/contributors/), or ask the Noduma maintainers at contact@noduma.dev. If you share a PC of your own, its answers to you are free: send your requests to [My PCs](/concepts/routing/#own-my-pcs). Credits are not money: they cannot be bought or paid out. 3. **Create an API key.** In the Noduma app, open **API keys** and create a named key. It starts with `ndm_k_` and is shown once: keep it like a password. **Revoke** ends it at once. ```sh export NODUMA_API_KEY=ndm_k_... ``` 4. **List the models** and see which ones a PC serves now (`"state": "ready"`) and their price: ```sh curl https://app.noduma.dev/v1/models -H "Authorization: Bearer $NODUMA_API_KEY" ``` 5. **Send a request.** Use a model whose state is `ready`: **curl** ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "qwen2.5-7b-instruct-q4_k_m", "messages": [{"role": "user", "content": "Explain in one sentence what a GPU does."}] }' ``` **Python** ```python # pip install openai import os from openai import OpenAI client = OpenAI(base_url="https://app.noduma.dev/v1", api_key=os.environ["NODUMA_API_KEY"]) answer = client.chat.completions.create( model="qwen2.5-7b-instruct-q4_k_m", messages=[{"role": "user", "content": "Explain in one sentence what a GPU does."}], ) print(answer.choices[0].message.content) ``` **JavaScript** ```js // npm install openai import OpenAI from 'openai'; const client = new OpenAI({ baseURL: 'https://app.noduma.dev/v1', apiKey: process.env.NODUMA_API_KEY }); const answer = await client.chat.completions.create({ model: 'qwen2.5-7b-instruct-q4_k_m', messages: [{ role: 'user', content: 'Explain in one sentence what a GPU does.' }], }); console.log(answer.choices[0].message.content); ``` 6. **Read the cost.** Every answer carries what it cost in `usage.noduma_cost`, in credits, and the price it was charged at in `usage.noduma_price_per_1k_tokens`. See [Usage and cost](/api/usage-and-cost/). ## If it fails | Answer | What it means | |---|---| | `401 invalid_api_key` | The key is missing, mistyped or revoked | | `402 insufficient_credits` | The balance does not cover the answer; see step 2 | | `503 model_not_available` | The model is on Noduma's list but no PC serves it right now; try another model or later | | `404 model_not_found` | The name is not on Noduma's list; copy it from `/v1/models` | Every error is in [Errors](/api/errors/). ## Next - [Streaming](/api/streaming/) to show words as they are written. - [SDK examples](/sdk-examples/) for streaming, tools and the routing header in Python and JavaScript. - [Routing](/concepts/routing/) to know who can read your request. --- # SDK examples Noduma's API with curl, the OpenAI Python SDK and the OpenAI JavaScript SDK. Source: https://docs.noduma.dev/sdk-examples/ Noduma serves a subset of OpenAI's chat-completions interface, so the OpenAI SDKs work by changing the base URL to `https://app.noduma.dev/v1` and using a Noduma API key. curl and the OpenAI Python SDK were tested against the API; the JavaScript examples send the same requests through the official `openai` package and have not been run against it yet. Every example reads the key from `NODUMA_API_KEY`. ## Setup **curl** ```sh export NODUMA_API_KEY=ndm_k_... ``` **Python** ```python # pip install openai import os from openai import OpenAI client = OpenAI(base_url="https://app.noduma.dev/v1", api_key=os.environ["NODUMA_API_KEY"]) ``` **JavaScript** ```js // npm install openai const client = new OpenAI({ baseURL: 'https://app.noduma.dev/v1', apiKey: process.env.NODUMA_API_KEY }); ``` ## List the models **curl** ```sh curl https://app.noduma.dev/v1/models -H "Authorization: Bearer $NODUMA_API_KEY" ``` **Python** ```python for model in client.models.list(): print(model.id, model.model_extra.get("noduma")) ``` **JavaScript** ```js const models = await client.models.list(); for (const model of models.data) console.log(model.id, model.noduma); ``` ## Stream an answer **curl** ```sh curl -N https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "qwen2.5-7b-instruct-q4_k_m", "stream": true, "messages": [{"role": "user", "content": "Write a haiku about shared GPUs."}]}' ``` **Python** ```python stream = client.chat.completions.create( model="qwen2.5-7b-instruct-q4_k_m", messages=[{"role": "user", "content": "Write a haiku about shared GPUs."}], stream=True, ) for chunk in stream: if chunk.choices and chunk.choices[0].delta.content: print(chunk.choices[0].delta.content, end="", flush=True) if chunk.usage: print("\ncost:", chunk.usage.model_extra.get("noduma_cost"), "credits") ``` **JavaScript** ```js const stream = await client.chat.completions.create({ model: 'qwen2.5-7b-instruct-q4_k_m', messages: [{ role: 'user', content: 'Write a haiku about shared GPUs.' }], stream: true, }); for await (const chunk of stream) { process.stdout.write(chunk.choices[0]?.delta?.content ?? ''); if (chunk.usage) console.log('\ncost:', chunk.usage.noduma_cost, 'credits'); } ``` The last chunk before `[DONE]` carries `usage`, with the answer's cost. See [Streaming](/api/streaming/). ## Use a tool **curl** ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "qwen3-coder-30b-a3b-instruct-q4_k_m", "messages": [{"role": "user", "content": "What is the weather in Madrid?"}], "tools": [{"type": "function", "function": { "name": "get_weather", "description": "Current weather of a city", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]} }}] }' ``` **Python** ```python tools = [{"type": "function", "function": { "name": "get_weather", "description": "Current weather of a city", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}, }}] answer = client.chat.completions.create( model="qwen3-coder-30b-a3b-instruct-q4_k_m", messages=[{"role": "user", "content": "What is the weather in Madrid?"}], tools=tools, ) for call in answer.choices[0].message.tool_calls or []: print(call.function.name, call.function.arguments) ``` **JavaScript** ```js const tools = [{ type: 'function', function: { name: 'get_weather', description: 'Current weather of a city', parameters: { type: 'object', properties: { city: { type: 'string' } }, required: ['city'] }, } }]; const answer = await client.chat.completions.create({ model: 'qwen3-coder-30b-a3b-instruct-q4_k_m', messages: [{ role: 'user', content: 'What is the weather in Madrid?' }], tools, }); for (const call of answer.choices[0].message.tool_calls ?? []) console.log(call.function.name, call.function.arguments); ``` Your program runs the tool and sends its result back as a `tool` message. See [Tools](/api/tools/). ## Ask only your own PCs With the `Noduma-Routing: own` header only the PCs paired to your account answer, free. See [Routing](/concepts/routing/). **curl** ```sh curl https://app.noduma.dev/v1/chat/completions \ -H "Authorization: Bearer $NODUMA_API_KEY" \ -H "Content-Type: application/json" \ -H "Noduma-Routing: own" \ -d '{"model": "qwen2.5-7b-instruct-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}' ``` **Python** ```python answer = client.chat.completions.create( model="qwen2.5-7b-instruct-q4_k_m", messages=[{"role": "user", "content": "Hello"}], extra_headers={"Noduma-Routing": "own"}, ) ``` **JavaScript** ```js const answer = await client.chat.completions.create( { model: 'qwen2.5-7b-instruct-q4_k_m', messages: [{ role: 'user', content: 'Hello' }] }, { headers: { 'Noduma-Routing': 'own' } }, ); ``` ## Read your balance **curl** ```sh curl https://app.noduma.dev/v1/account -H "Authorization: Bearer $NODUMA_API_KEY" ``` **Python** ```python import json, os, urllib.request request = urllib.request.Request("https://app.noduma.dev/v1/account", headers={"Authorization": "Bearer " + os.environ["NODUMA_API_KEY"]}) print(json.load(urllib.request.urlopen(request))["available"]) ``` **JavaScript** ```js const res = await fetch('https://app.noduma.dev/v1/account', { headers: { Authorization: `Bearer ${process.env.NODUMA_API_KEY}` }, }); console.log((await res.json()).available); ``` --- # Security and privacy Who can read a request on each plan, what Noduma stores, and what it does not protect against. Source: https://docs.noduma.dev/security/ Read this before you send anything sensitive. ## Who can read your request | Who | Can read it? | |---|---| | **The owner of the PC that answers** (Community, `any`) | **Yes**, without knowing who sent it. Consumer GPUs and Macs cannot hide data from their owner, and no known method makes that practical | | **Every PC of a Tier 2 group** | Yes, each of them | | **Your own PCs** (`own`, My PCs) | Only you, the owner | | **Vetted PCs** (`vetted`, `trusted`, an Ad-Hoc network) | Their owners, whom a maintainer vetted | | **The coordinator, run by the Noduma maintainers** | It relays every request and answer. It never logs or stores a prompt or an answer; the maintainers are trusted, like any hosted AI provider | | **Cloudflare** | No. Noduma's names are DNS only; TLS ends in Noduma's cluster | **On the Community plan, do not send secrets or personal data about other people.** For private work, use [My PCs](/concepts/routing/#own-my-pcs), an [Ad-Hoc network](/concepts/plans/#ad-hoc) or [Enterprise](/enterprise/). `confidential` routing, to attested confidential-computing PCs, is implemented but has never run on real confidential hardware: treat it as a design, not a guarantee. ## Redaction Before a request leaves the coordinator, known secret formats (private keys, API tokens, `password=` values, email addresses) are replaced with placeholders, and the answer gets them back. It covers known formats only; anything else reaches the PC as written. `Noduma-Redaction: off` turns it off. ## Answers are not checked Nothing checks that an answer is correct or that a PC ran the model it claims. A dishonest PC can return a wrong answer, or run a smaller model, and still earn credits; a maintainer's ban is what stops it. Treat every answer as untrusted text: never run code or commands from an answer without reading them. ## What Noduma keeps - **Never:** prompts, answers or keys in logs or storage. Developer-mode events carry identifiers, counts, timings and states only. - **Keys:** stored only as hashes. An API key is shown once; **Revoke** ends it at once. - **Account and credits:** your email address (in the Noduma app), your PCs' records and your credit history, each entry with its amount and model, never the text of a request or an answer. "Download my data" in the Noduma app gives it all as one JSON file. - **Conversations** of the signed-in chat stay in your browser or in Noduma desktop; signing out deletes them. The [Privacy Notice](https://app.noduma.dev/privacy) is the full statement. ## Contributors' PCs A PC connects outbound to the coordinator and opens no port, except a Tier 2 worker that listens for its group. The engine runs on loopback with a private key. In Tier 2 the engine's server on a worker runs confined. Model output is never executed by Noduma. ## Reporting a problem Security issues and abuse: contact@noduma.dev. The [Abuse Policy](https://app.noduma.dev/abuse) says what to include.