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
{{ message }}
Repository navigation
Commit 942f4db
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
## Why?
10
10
11
-
DeepSeek API has usage-based billing. This TUI sidebar shows your balance in real-time so you never hit zero unexpectedly. Auto-detects DeepSeek provider from opencode config. Color-coded warnings when balance drops below thresholds.
11
+
DeepSeek API has usage-based billing. This TUI sidebar shows your balance in real-time so you never hit zero unexpectedly. Reads the DeepSeek key from opencode's auth.json (see Configuration). Color-coded warnings when balance drops below thresholds.
12
12
13
13
## Quickstart
14
14
@@ -35,11 +35,20 @@ Restart opencode.
35
35
└──────────────────────┘
36
36
```
37
37
38
-
Auto-refreshes after each assistant message (min 10s interval). Shows "no key" if DeepSeek provider not configured.
38
+
Auto-refreshes after each assistant message (min 10s interval).
39
+
40
+
Status messages: `NO KEY` (no key found), `KEY ERROR <code>` (a key file exists but cannot be read, e.g. `EACCES`), `INVALID KEY` (rejected by DeepSeek), `API <status>` (other API errors).
39
41
40
42
## Configuration
41
43
42
-
No config file needed — reads API key from opencode provider config. Ensure DeepSeek is configured in opencode's model providers.
44
+
No config file needed. The API key is taken from the first source that has one:
45
+
46
+
1.`auth.json` in the opencode data dir — `$XDG_DATA_HOME/opencode/auth.json`, default `~/.local/share/opencode/auth.json` (written by `opencode auth login`)
47
+
2.`auth.json` in the opencode state dir (fallback)
0 commit comments