OpenCode configuration and token tracking dashboard.
- opencode/: OpenCode config (commands, themes, plugins)
- dashboard/: SvelteKit app for viewing token usage stats (PostgreSQL backend)
- setup/: Setup script for symlinking config and configuring the token tracker
cd setup && bun run setupThis will:
- Symlink
opencode/to~/.config/opencode(prompts before overwriting) - Ask for API URL and key for the token tracker
Requires DATABASE_URL and API_KEY env vars.
cd dashboard && bun install && bun run db:push && bun run dev