Help us shape the future of Go! Take the 2026 Go Developer Survey

dappnode-nexus-gateway

module
v0.1.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: Apache-2.0

README

Dappnode Nexus Gateway

The open-source API gateway behind Dappnode Nexus, a unified, OpenAI-compatible API for accessing multiple AI models.

Open Nexus · Browse models · Get help

Get started

  1. Sign in to Nexus.
  2. Choose a subscription or add credit from Billing.
  3. Create a key from API Keys and store it securely. The key is shown only once.
  4. Choose a model ID from Models.

Use the following OpenAI-compatible connection settings:

Setting Value
Base URL https://nexus-api.dappnode.com/v1
Authentication Authorization: Bearer YOUR_API_KEY

Make a request

Set NEXUS_API_KEY in your environment and replace MODEL_NAME with a model from your Nexus dashboard.

curl https://nexus-api.dappnode.com/v1/chat/completions \
  -H "Authorization: Bearer ${NEXUS_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MODEL_NAME",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'
OpenAI Python client
pip install openai
import os

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["NEXUS_API_KEY"],
    base_url="https://nexus-api.dappnode.com/v1",
)

response = client.chat.completions.create(
    model="MODEL_NAME",
    messages=[{"role": "user", "content": "Hello!"}],
)

print(response.choices[0].message.content)

API compatibility

Endpoint Description
GET /v1/models Lists the available models, prices and capabilities.
POST /v1/chat/completions Creates chat completions; supports streaming.

Supported capabilities depend on the selected model and can include streaming, tool calls, parallel tool calls, structured outputs and reasoning. The current capabilities for each model are shown in the model catalog.

Privacy and usage controls

Nexus provides per-key PII masking settings and access to privacy-focused models. Configure these options from API Keys, and monitor requests, tokens and costs from Usage. See the Privacy Policy for details about how Nexus processes data.

Help and feedback

Contributing

Contributions are welcome. See CONTRIBUTING.md for the development workflow.

License

Licensed under Apache-2.0. Bundled dependency notices are available in THIRD_PARTY_NOTICES.md.

Directories

Path Synopsis
apps
gateway command
gateway/internal/adapters/observability/metrics
Package metrics centralizes Prometheus metric definitions and the HTTP handler that exposes them.
Package metrics centralizes Prometheus metric definitions and the HTTP handler that exposes them.
gateway/internal/adapters/pii/presidio
Package presidio adapts Microsoft Presidio's analyzer HTTP API to the ports.PIIFilter interface.
Package presidio adapts Microsoft Presidio's analyzer HTTP API to the ports.PIIFilter interface.
cmd
internal
pkg
fx
Package fx provides cached exchange-rate clients.
Package fx provides cached exchange-rate clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL