@mupt-ai/dari-gateway 1.0.292 → 1.0.295

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -32,10 +32,13 @@ The gateway is the runtime behind Dari's hosted routing service, packaged to run
32
32
  - **Prompt-cache aware.** Conversations keep their identity and serving model across turns, so provider caches stay warm. Responses carry `X-Dari-Selected-Model`, `X-Dari-Thinking-Level`, and `X-Dari-Conversation-Id` headers for status lines.
33
33
  - **Coding agents.** `dari claude`, `dari codex`, `dari opencode`, and `dari pi` from the [Dari CLI](https://github.com/mupt-ai/dari) launch straight against your gateway.
34
34
 
35
- The gateway is the same runtime that serves Dari's hosted routing service. Choosing among a router's models with Dari's trained routing policy (Dari Auto Routing) is optional and uses a Dari API key; without it, `dari/routing` serves the router's first available model.
35
+ Dari Auto Routing (choosing among a router's models with Dari's trained policy) is optional and needs a Dari API key; without it, `dari/routing` serves the router's first available model.
36
36
 
37
37
  ## Run
38
38
 
39
+ > [!IMPORTANT]
40
+ > **Observability needs hosted Dari.** Requests through your own gateway never reach Dari, so there is no Activity dashboard, per-request cost, or usage analytics. Use hosted mode (`dari gateway setup --mode hosted`) if you want them.
41
+
39
42
  The easiest way to run it on your own machine is the [Dari CLI](https://github.com/mupt-ai/dari): choose **Fully local** in `dari gateway setup` (or on your first `dari claude`), and it installs this gateway's standalone binary, runs it in the background, and connects your agents.
40
43
 
41
44
  To run it yourself, use [Bun](https://bun.sh) 1.3 or later, or the standalone binary for your platform from the [releases](https://github.com/mupt-ai/dari/releases). A config file is optional: without `DARI_GATEWAY_CONFIG` or a `dari-gateway.yaml` in the working directory, the gateway serves a default router of current Anthropic and OpenAI models, each once its provider has a subscription or API key. To choose models, write a `dari-gateway.yaml` (start from [`dari-gateway.example.yaml`](dari-gateway.example.yaml)). Then:
@@ -56,8 +59,6 @@ docker run -p 8080:8080 \
56
59
  ghcr.io/mupt-ai/dari-gateway
57
60
  ```
58
61
 
59
- From a clone of [mupt-ai/dari](https://github.com/mupt-ai/dari), `bun install && (cd packages/router && bun run build) && (cd packages/gateway && bun run start)` or `docker build -f packages/gateway/Dockerfile -t dari-gateway .` run the same thing.
60
-
61
62
  | Variable | Meaning |
62
63
  | --- | --- |
63
64
  | `DARI_GATEWAY_KEYS` | Required. Comma-separated bearer keys clients authenticate with. |
@@ -104,7 +105,7 @@ dari credentials subscription connect claude-code # or codex or muse-code; rep
104
105
  dari claude
105
106
  ```
106
107
 
107
- In gateway mode the CLI makes no calls to Dari's hosted API. `dari credentials subscription list`, `rename`, `mark-available`, and `disconnect` manage the gateway's subscriptions.
108
+ In gateway mode the CLI makes no calls to Dari's hosted API, and `dari activity` is unavailable.
108
109
 
109
110
  ## Embed
110
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mupt-ai/dari-gateway",
3
- "version": "1.0.292",
3
+ "version": "1.0.295",
4
4
  "description": "Self-hostable LLM gateway for coding agents and APIs: one endpoint for Anthropic Messages, OpenAI Chat Completions, and OpenAI Responses, with subscription pooling, failover, and prompt-cache-aware routing.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@aws-sdk/client-sts": "3.1063.0",
54
- "@mupt-ai/dari-router": "1.0.292",
54
+ "@mupt-ai/dari-router": "1.0.295",
55
55
  "@mupt-ai/pi-ai": "1.4.0-mupt.3"
56
56
  },
57
57
  "devDependencies": {