Local Server — use PranorAI's local AI in coding tools
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 it | Settings → Developer |
| Works on | Desktop app only |
| Address | http://127.0.0.1:<port>, default port 8090; answers this device only |
| Needs | A local model in PranorAI's bundled AI engine (Model Library) |
| Cost | None; it uses your own hardware, no allowance or wallet credit |
| Default | Off; 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 shape | Used by |
|---|---|
OpenAI-style /v1/chat/completions | OpenAI-compatible tools |
/v1/responses | Codex CLI |
Anthropic Messages API /v1/messages | Claude Code |
How do I start the Local Server?
- Open Settings → Developer and click Start Local Server. The card turns green, shows Ready to connect, and the button becomes a red Stop Server.
- In Connection setup, pick your coding tool and shell.
- 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?
| Setting | Where | Effect | Default |
|---|---|---|---|
| Server on/off | Start Local Server / Stop Server | On: listens on 127.0.0.1:<port> for token-authenticated requests from this device. Off: connection refused | Off |
| Model served | What's shared → Model | Every request that omits a model uses this one | PranorAI's local engine default model |
| Port | Advanced settings | Listening port, 1024 to 65535. Restart the server to apply | 8090 |
| Rate limit | Advanced settings | Requests per minute, 1 to 1000. A runaway script gets a clear "wait a moment" error | 60 per minute |
| Max concurrent requests | Advanced settings | Requests in flight at once, 1 to 32 | 4 |
| Start automatically | Advanced settings | Starts 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-gated | Off |
| Access token | What's shared | Required 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 see | Cause | Fix |
|---|---|---|
| Connection refused | The server is not running | Click Start Local Server, or turn on Start automatically |
| 401 Unauthorized | The token your tool uses is not the current one | Copy it again after any Regenerate token |
| 429 Too Many Requests | Rate limit or concurrency cap reached | Raise either under Advanced settings |
LOCAL-SERVER-TEST-NO-MODEL | No model installed, or the local engine is not running | Install a model; check the engine |
LOCAL-SERVER-TEST-TOKEN | The token was refused | Copy the current token |
| Tool shows as unlabeled in server logs | The tool's user agent was not recognized | Harmless; requests still work |
| Codex says "exceeds the available context size", or a task hangs | A 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 hanging | Keep 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
- Let other AI apps request approved answers: Let other AI apps ask PranorAI.
- Share your GPU with other devices: Device Sharing.
- Get a model to serve: Model Library.
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
- Device Sharing — share AI between your devices
- Always-on hosting — keep a PranorAI host running
- Let other AI apps ask PranorAI, with approval
- Company GPU rack — shared team GPU without invite codes
- Own servers and Device sharing tabs in chat
- Own Servers — Pranor-star AI server on your hardware
- Choose models on a shared computer in Device Sharing
- Pranor Star sign-in — open the server page
Was this not what you needed? Contact support or send feedback.