You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add uniform token pricing providers to best use cases
Mention providers like Cerebras that bill cached tokens at the same rate as regular input tokens, making DCP purely beneficial with no cache-miss penalty.
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,15 +49,18 @@ LLM providers like Anthropic and OpenAI cache prompts based on exact prefix matc
49
49
50
50
> **Note:** In testing, cache hit rates were approximately 65% with DCP enabled vs 85% without.
51
51
52
-
**Best use case:** Providers that count usage in requests, such as Github Copilot and Google Antigravity have no negative price impact.
52
+
**Best use cases:**
53
+
54
+
-**Request-based billing** — Providers that count usage in requests, such as Github Copilot and Google Antigravity, have no negative price impact.
55
+
-**Uniform token pricing** — Providers that bill cached tokens at the same rate as regular input tokens, such as Cerebras, see pure savings with no cache-miss penalty.
53
56
54
57
## Configuration
55
58
56
59
DCP uses its own config file:
57
60
58
61
- Global: `~/.config/opencode/dcp.jsonc` (or `dcp.json`), created automatically on first run
59
62
- Custom config directory: `$OPENCODE_CONFIG_DIR/dcp.jsonc` (or `dcp.json`), if `OPENCODE_CONFIG_DIR` is set
60
-
- Project: `.opencode/dcp.jsonc` (or `dcp.json`) in your project’s `.opencode` directory
63
+
- Project: `.opencode/dcp.jsonc` (or `dcp.json`) in your project's `.opencode` directory
61
64
62
65
<details>
63
66
<summary><strong>Default Configuration</strong> (click to expand)</summary>
0 commit comments