Skip to content
PranorAI

Local Server — use PranorAI's local AI in coding tools

Updated

Local Server (also called the local AI server or local API) is a PranorAI desktop feature that lets tools running on the same device, such as Claude Code, Codex, Cursor or any OpenAI-compatible or Anthropic-compatible client, call PranorAI's local model the way they would call a paid cloud API, without leaving your machine. It is different from Device Sharing, which lets another device use this machine's AI (Device Sharing).

Where to find itSettings → Developer
Works onDesktop app only
Addresshttp://127.0.0.1:<port>, default port 8090; answers this device only
NeedsA local model in PranorAI's bundled AI engine (Model Library)
CostNone; it uses your own hardware, no allowance or wallet credit
DefaultOff; you start it by hand

What does the Local Server answer?

The endpoint is never reachable from your network or the internet, by design, and every request must carry your personal access token. It answers three API shapes on one port; they all reach the same local model.

API shapeUsed by
OpenAI-style /v1/chat/completionsOpenAI-compatible tools
/v1/responsesCodex CLI
Anthropic Messages API /v1/messagesClaude Code

How do I start the Local Server?

  1. Open Settings → Developer and click Start Local Server. The card turns green, shows Ready to connect, and the button becomes a red Stop Server.
  2. In Connection setup, pick your coding tool and shell.
  3. Click Copy on the snippet and paste it into your terminal. It sets the server address and your access token for that tool. Cursor takes the two values in its own settings, each with its own copy button.

The three steps at the top of the page tick off as you go; the third ticks when a tool has actually sent a request.

How do I check that it works?

Click Test Connection in the Connection setup card. PranorAI sends one real request with your access token and reports how many models answered. If it fails, the message says why and shows a code. The test counts as one request against the rate limit and appears in the server logs.

What is on the Local Server page?

  • Local AI Server card: state, Start Local Server / Stop Server, Restart, and the three steps.
  • Connection setup: two tabs. Use PranorAI's model gives the snippet for a coding tool. Let an AI app ask PranorAI is described in Let other AI apps ask PranorAI.
  • What's shared: the model served, the endpoint, the port and the access token (eye icon reveals it, copy icon copies it, Regenerate token replaces it).
  • More resources: View server logs, API documentation, SDK examples and Advanced settings. Each opens a popup.

What does each Local Server setting do?

SettingWhereEffectDefault
Server on/offStart Local Server / Stop ServerOn: listens on 127.0.0.1:<port> for token-authenticated requests from this device. Off: connection refusedOff
Model servedWhat's shared → ModelEvery request that omits a model uses this onePranorAI's local engine default model
PortAdvanced settingsListening port, 1024 to 65535. Restart the server to apply8090
Rate limitAdvanced settingsRequests per minute, 1 to 1000. A runaway script gets a clear "wait a moment" error60 per minute
Max concurrent requestsAdvanced settingsRequests in flight at once, 1 to 324
Start automaticallyAdvanced settingsStarts the server when PranorAI opens, and lets a script or relaunch on this device (PranorAI.exe --start-local-server) start it. Still localhost-only and token-gatedOff
Access tokenWhat's sharedRequired on every request (Authorization: Bearer <token> or x-api-key: <token>)Generated the first time you start the server

Why is the Local Server not working?

You seeCauseFix
Connection refusedThe server is not runningClick Start Local Server, or turn on Start automatically
401 UnauthorizedThe token your tool uses is not the current oneCopy it again after any Regenerate token
429 Too Many RequestsRate limit or concurrency cap reachedRaise either under Advanced settings
LOCAL-SERVER-TEST-NO-MODELNo model installed, or the local engine is not runningInstall a model; check the engine
LOCAL-SERVER-TEST-TOKENThe token was refusedCopy the current token
Tool shows as unlabeled in server logsThe tool's user agent was not recognizedHarmless; requests still work
Codex says "exceeds the available context size", or a task hangsA real capacity limit: Codex sends a large system prompt (often 4,000+ tokens) and small local models have a limited context window. PranorAI fails fast and clearly instead of hangingKeep tasks short, or use a larger local model if your hardware can run one

How do I point Codex CLI at the Local Server?

Codex CLI reads provider config from ~/.codex/config.toml, not plain environment variables, and only speaks the Responses API. Define a custom provider, for example with -c flags (built-in names such as ollama are reserved, so pick a custom name):

codex -c 'model_providers.pranorai.name="PranorAI"' -c 'model_providers.pranorai.base_url="http://127.0.0.1:8090/v1"' -c 'model_providers.pranorai.env_key="OPENAI_API_KEY"' -c 'model_providers.pranorai.wire_api="responses"' -c 'model_provider="pranorai"' -c 'model="<model id from /v1/models>"'

Frequently asked questions

What is the PranorAI Local Server? The Local Server is an endpoint on your own computer that lets coding tools call PranorAI's local model like a cloud API, without the request leaving your machine.

Can other computers reach the Local Server? No. It answers only this device. To let another device use your AI, use Device Sharing.

Does the Local Server work in the browser? No. It is desktop app only.

Does it cost anything? No. It runs your own local model on your own hardware.

Which tools can use it? Claude Code, Codex CLI, Cursor, or any OpenAI-compatible or Anthropic-compatible client.

What if my token leaks? Click Regenerate token and copy the new one into your tools.

Next steps

Do / don't

  • Do turn on Start automatically if you want coding tools to reach PranorAI without opening the app.
  • Do regenerate your token if it may have been shared or logged.
  • Don't expect the endpoint to be reachable from another device or the internet.
  • Don't paste your access token into a shared script, ticket or chat.

Last reviewed: 2026-11-10 against code (a7c6ea9f6)

More in Remote Access

Was this not what you needed? Contact support or send feedback.