Skip to main content

Ports and Endpoints

Network services, default ports, and configuration options.

Services​

ServiceDefault AddressConfigurableDescription
HTTP APIlocalhost:11435--port flagOpenAI-compatible REST API for chat completions, model management, and app control
Relaywss://relay.teale.com/wswan_relay_url settingWebSocket relay server for WAN peer discovery and signaling
STUNstun.l.google.com:19302--STUN server for NAT type detection and public address discovery
Bonjour_teale._tcp--mDNS/Bonjour service type for LAN peer discovery

HTTP API​

The local HTTP API runs on localhost:11435 by default and provides an OpenAI-compatible interface.

Changing the Port​

CLI:

teale serve --port 8080

Config:

teale config set port 8080

Endpoints​

MethodPathDescription
POST/v1/chat/completionsOpenAI-compatible chat completions
GET/v1/modelsList available models
GET/healthHealth check
GET/app/snapshotFull app state snapshot
GET/app/settingsCurrent settings
PUT/app/settingsUpdate settings
GET/app/modelsModel management
POST/app/models/loadLoad a model
POST/app/models/unloadUnload a model
GET/app/peersConnected peers
GET/app/walletWallet balance and transactions
GET/app/ptnPTN memberships
POST/app/agent/runRun an agent task
GET/app/apikeysList API keys
POST/app/apikeysCreate API key
DELETE/app/apikeys/:idDelete API key

See API Reference for full documentation of each endpoint.

Relay Server​

The relay server handles WAN peer discovery, signaling, and fallback data transport.

Default Relay​

wss://relay.teale.com/ws

Custom Relay​

Point your node to a self-hosted relay:

teale config set wan_relay_url wss://my-relay.example.com/ws

Relay HTTP Endpoints​

MethodPathDescription
GET/healthServer health and peer count
GET/peersConnected peers (truncated IDs)
GET/metricsServer metrics (messages/min, sessions, uptime)
GET/wsWebSocket upgrade (requires ?node= parameter)

See Self-Hosting for running your own relay.

STUN Servers​

Used for NAT traversal. These are public Google STUN servers.

ServerPort
stun.l.google.com19302
stun1.l.google.com19302

STUN servers are not configurable in the current version.

Bonjour / mDNS​

LAN discovery uses Bonjour (macOS/iOS) or mDNS (Linux) to find peers on the local network.

FieldValue
Service type_teale._tcp
Domainlocal.
TXT recordContains node ID and loaded models

Bonjour discovery is automatic and requires no configuration. It works without internet access.

Firewall Rules​

For direct P2P connections, the following ports may need to be allowed:

PortProtocolDirectionPurpose
51820UDPInbound/OutboundWireGuard-style P2P connections
11435TCPInbound (localhost only)Local HTTP API

The relay connection uses standard HTTPS (port 443) which is typically allowed by firewalls.