-
Notifications
You must be signed in to change notification settings - Fork 0
Proxy and Governance
Yash Aryan edited this page Aug 8, 2026
·
1 revision
Code: app/src/main/proxy/
Default: http://127.0.0.1:3227/v1
Settings: proxyEnabled, proxyPort in llmeter-settings.json
GET /v1/models-
POST /v1/chat/completions(streaming where implemented)
Clients use anylm_ API keys created in the app/org settings — not the Firebase session cookie. Keys are stored hashed in Firestore (apiKeys collection).
Other local tools (IDEs, scripts, OpenAI-compatible clients) can hit AnyLM-governed models on loopback.
- Not a public internet server (bind loopback).
- Does not execute AnyLM tools or skills.
- Does not assemble project RAG the same way as the desktop chat UI (keep expectations clear in docs/UI copy).
Separate from the proxy:
| Piece | Role |
|---|---|
governance.ts |
Preflight / evaluate prompts |
policy-engine.ts |
Policy interpretation |
api/usage, limits helpers |
Record usage, check quotas |
| Org policies in Firestore | Model allowlists, content rules |
On Spark, enforcement is honest-client. Rules stop privilege escalation in Firestore but cannot force usage telemetry.
- Create/revoke in settings / org admin surfaces
- Used by proxy clients as
Authorization: Bearer anylm_… - Never commit real keys; examples stay placeholders
- When adding proxy routes, keep OpenAI shape where possible.
- Reuse identity/org checks already used for key verification.
- Document clearly that tool calling in external clients ≠ AnyLM tool runtime.
| Page | Description |
|---|---|
| Home | Overview and navigation |
| Getting-Started | Local setup |
| Architecture | System design |
| Code-Structure | Directory map |
| Features | Feature inventory |
| Contributing | PR workflow |
| How-to-Change | Common change recipes |
| Gotchas | Footguns |
| Chat-Pipeline | Turn lifecycle |
| IPC-Contract | window.api |
| Auth-and-Firebase | Identity + rules |
| RAG-and-Knowledge | Vectors + graph |
| Agents | Multi-agent |
| Proxy-and-Governance | :3227 + policies |
| Configuration | Env + settings |
| Testing | bun test |
| Build-and-Release | Packaging |
| Skills | Build skills |
| Tools | Build tools |
| MCP-and-Extensions | MCP status + options |