-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.json
More file actions
94 lines (94 loc) · 3.27 KB
/
Copy pathmanifest.json
File metadata and controls
94 lines (94 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"schemaVersion": 1,
"id": "gotar.ai-usage",
"name": "AI Usage",
"version": "1.4.0",
"author": "gotar",
"license": "MIT",
"description": "Opencode Go, Codex/OpenAI (5h session + weekly windows side by side) and Local Qwen 3.8 with live tokens/sec, ctx usage & draft stats — with wallet balance (Zen credits) via a dedicated headless Chromium profile.",
"kinds": ["bar-widget"],
"activation": "on-demand",
"entryPoints": {
"barWidget": "BarWidget.qml"
},
"barWidget": {
"displayName": "AI Usage",
"description": "One-screen Opencode Go, Codex and Local Qwen usage with bars, remaining %, wallet balance via Chromium CDP, and a start/stop switch for the local model.",
"category": "AI",
"allowMultiple": false,
"defaultSection": "right",
"defaults": {
"opencodeApiKey": "",
"opencodeEndpoint": "https://opencode.ai/zen/go/v1/usage",
"opencodeWorkspaceId": "",
"opencodeBalanceTtlSec": 600,
"refreshIntervalSec": 300,
"showValue": true,
"localUnit": "llama-cpp-server.service",
"localHost": "127.0.0.1:8080"
},
"schema": [
{
"key": "opencodeApiKey",
"type": "string",
"label": "Opencode Go API key",
"description": "Paste your Opencode Go API key. Stored in shell.json. Leave blank to use ai-usagebar's opencode-go entry as fallback.",
"defaultValue": ""
},
{
"key": "opencodeEndpoint",
"type": "string",
"label": "Opencode Go endpoint (JSON)",
"description": "JSON usage endpoint. Default is https://opencode.ai/zen/go/v1/usage",
"defaultValue": "https://opencode.ai/zen/go/v1/usage"
},
{
"key": "opencodeWorkspaceId",
"type": "string",
"label": "Opencode workspace ID (wallet)",
"description": "Workspace ID for the wallet fetch. Used as https://opencode.ai/workspace/<id>/billing. Uses a dedicated headless Chromium profile — run scripts/opencode-balance.sh --login once to sign in.",
"defaultValue": ""
},
{
"key": "opencodeBalanceTtlSec",
"type": "integer",
"label": "Wallet cache TTL (seconds)",
"description": "Cache for wallet fetch; browser tab is only opened after TTL expires. Default 600s.",
"min": 60,
"max": 86400,
"step": 60,
"defaultValue": 600
},
{
"key": "refreshIntervalSec",
"type": "integer",
"label": "Refresh interval (seconds)",
"min": 30,
"max": 3600,
"step": 30,
"defaultValue": 300
},
{
"key": "showValue",
"type": "boolean",
"label": "Show usage value in bar",
"description": "Show percentages next to the icon in the top bar.",
"defaultValue": true
},
{
"key": "localUnit",
"type": "string",
"label": "Local model systemd unit",
"description": "systemd --user unit for llama.cpp server. Default llama-cpp-server.service",
"defaultValue": "llama-cpp-server.service"
},
{
"key": "localHost",
"type": "string",
"label": "Local model host",
"description": "Host:port for the llama.cpp server (display only).",
"defaultValue": "127.0.0.1:8080"
}
]
}
}