Use the operator's HTTPS proxy with a private backend on port 5187. Limit the Proxmox host script to container creation and install a self-updating command inside the LXC. Preserve keys/history during legacy proxy migration and keep root updater code isolated from unprivileged build output. Closes #21
77 lines
3.9 KiB
Markdown
77 lines
3.9 KiB
Markdown
# FinalToken
|
|
|
|
FinalToken answers: **at my current usage, will my allowance last until the weekly reset?**
|
|
It tracks Claude Code and Codex limits, average/recent forecasts, daily budgets and reset history.
|
|
Use the desktop tray app, the optional self-hosted web dashboard, or Stream Deck keys.
|
|
Starting the desktop app opens its stats panel; closing it keeps the tray app running by default.
|
|
|
|
FinalToken reads the installed CLIs' usage files and runs their commands. Provider credentials
|
|
stay owned by those CLIs; FinalToken never reads credential files or calls a provider's HTTP API.
|
|
The optional [self-hosted dashboard and worker](docs/web-dashboard.md) combine multiple machines
|
|
and coordinate official CLI login with transient authorization-code relay. Weekly forecasts,
|
|
daily budgets and reset history reuse the desktop app's analysis. Missing or logged-out CLIs
|
|
show their observed health; stale allowances have no current forecast.
|
|
|
|
For automatic container creation from a Proxmox host, use the [LXC install/update script](docs/proxmox.md).
|
|
It creates a server-only LXC behind your existing HTTPS proxy. Run `finaltoken-update` inside
|
|
the container for updates; no Proxmox-host checkout is needed afterwards.
|
|
|
|
## Requirements
|
|
|
|
- Claude Code and/or Codex CLI installed and logged in through the CLI. Their paths can be
|
|
overridden in Settings.
|
|
- Desktop: Windows 11, or Linux with X11 or XWayland. CachyOS with KDE Plasma uses XWayland.
|
|
- Web server/client: .NET 10 source build or a target-OS NativeAOT build; no desktop required.
|
|
- For keys: Stream Deck 7 on Windows, or OpenDeck on Linux. These are optional.
|
|
|
|
## Install and use
|
|
|
|
Extract the published ZIP to a folder and run `FinalToken.exe` on Windows or `FinalToken` on
|
|
Linux. Keep the `streamdeck` folder beside the app. Open, Refresh, Settings and Quit are in the
|
|
tray menu. Start with the OS is opt-in.
|
|
|
|
Data lives in `%LOCALAPPDATA%\FinalToken` on Windows and `~/.local/share/FinalToken` on Linux.
|
|
`FINALTOKEN_DATA_DIR` overrides it. FinalToken keeps its own history after the CLIs remove their
|
|
files. A fresh install imports Claude entries from the last 60 days. `snapshot.json` is the
|
|
shared output for the plugin and CLI.
|
|
|
|
Settings has three Stream Deck install modes: **Off**, **Ask** (default), and **Automatic**.
|
|
Ask offers Install or Update and Not now. Automatic installs or updates the shipped plugin when
|
|
a host is found; it stops and restarts a running host. Off installs nothing.
|
|
Add the plugin's **Stat** action to a key, then select a provider and metric in its inspector.
|
|
Pressing the key opens the app's panel; missing or stale data shows offline.
|
|
|
|
## CLI
|
|
|
|
Run `finaltoken-cli status [--json] [--no-probe]`. Use `./finaltoken-cli` on Linux or
|
|
`.\finaltoken-cli.exe` in PowerShell when running from the extracted folder.
|
|
It scans, probes limits and prints a snapshot. `--no-probe` reads usage files only.
|
|
When the app holds the store lock, the CLI reads its existing snapshot without refreshing.
|
|
Exit codes are 0 for success, 1 for failure and 2 for bad arguments.
|
|
|
|
## Build from source
|
|
|
|
Use .NET SDK 10.0.100 or newer within .NET 10, Python 3, and the target OS's NativeAOT C++
|
|
toolchain. Run from the repository root, as described in [AGENTS.md](AGENTS.md):
|
|
|
|
```text
|
|
dotnet build FinalToken.slnx -c Release
|
|
dotnet test --solution FinalToken.slnx -c Release
|
|
python -B tools/docs/check_docs.py
|
|
python -B tools/publish.py win-x64 --out artifacts/package-win-x64
|
|
```
|
|
|
|
The publish directory must be empty. The tool bundles all three executables and plugin assets,
|
|
then creates a ZIP beside the directory. Publish `win-x64` on Windows and `linux-x64` on Linux.
|
|
|
|
## Public source and contributing
|
|
|
|
Once the repository is publicly readable, cloning/fetching/pulling over HTTPS needs no Git login.
|
|
Push access, dashboard access and official provider logins remain separate authenticated operations.
|
|
See [contributing](CONTRIBUTING.md) and [publication checks](docs/publication.md).
|
|
|
|
## License
|
|
|
|
[MIT](LICENSE). Third-party dependencies retain their own licenses.
|
|
|