{"id":49306991,"url":"https://github.com/tokentopapp/agent-opencode","last_synced_at":"2026-04-26T10:02:02.148Z","repository":{"id":338454498,"uuid":"1157943295","full_name":"tokentopapp/agent-opencode","owner":"tokentopapp","description":"tokentop agent plugin for OpenCode — session parsing, credential discovery, and real-time cost tracking","archived":false,"fork":false,"pushed_at":"2026-04-22T19:59:30.000Z","size":120,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-22T21:32:44.705Z","etag":null,"topics":["agent","ai","bun","opencode","tokentop","tokentop-plugin","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/tokentopapp/tokentop","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tokentopapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-14T14:51:47.000Z","updated_at":"2026-04-22T07:02:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tokentopapp/agent-opencode","commit_stats":null,"previous_names":["tokentopapp/agent-opencode"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tokentopapp/agent-opencode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokentopapp%2Fagent-opencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokentopapp%2Fagent-opencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokentopapp%2Fagent-opencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokentopapp%2Fagent-opencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tokentopapp","download_url":"https://codeload.github.com/tokentopapp/agent-opencode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokentopapp%2Fagent-opencode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32292958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","ai","bun","opencode","tokentop","tokentop-plugin","typescript"],"created_at":"2026-04-26T10:02:01.379Z","updated_at":"2026-04-26T10:02:02.143Z","avatar_url":"https://github.com/tokentopapp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @tokentop/agent-opencode\n\n[![npm](https://img.shields.io/npm/v/@tokentop/agent-opencode?style=flat-square\u0026color=CB3837\u0026logo=npm)](https://www.npmjs.com/package/@tokentop/agent-opencode)\n[![CI](https://img.shields.io/github/actions/workflow/status/tokentopapp/agent-opencode/ci.yml?style=flat-square\u0026label=CI)](https://github.com/tokentopapp/agent-opencode/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](LICENSE)\n\n[tokentop](https://github.com/tokentopapp/tokentop) agent plugin for **OpenCode**. Parses session data from both SQLite and JSON storage, reads multi-provider credentials, and provides real-time activity monitoring.\n\n## Capabilities\n\n| Capability | Status |\n|-----------|--------|\n| Session parsing | Yes (SQLite + JSON fallback) |\n| Credential reading | Yes (multi-provider) |\n| Real-time tracking | Yes |\n| Multi-provider | Yes |\n\n## How It Works\n\nThis plugin reads OpenCode's local data to extract:\n\n- **Sessions** — parsed from SQLite database (`~/.local/share/opencode/opencode.db`) with automatic JSON fallback for older installs\n- **Credentials** — reads OAuth tokens and API keys from `~/.local/share/opencode/auth.json` and provider config from `~/.config/opencode/config.json`\n- **Provider discovery** — detects configured providers (Anthropic, OpenAI, Google Gemini, GitHub Copilot, OpenRouter, Antigravity, OpenCode Zen)\n- **Real-time monitoring** — watches for session file changes to update the dashboard live\n\n## Install\n\nThis plugin is **bundled with tokentop** — no separate install needed. If you need it standalone:\n\n```bash\nbun add @tokentop/agent-opencode\n```\n\n## Requirements\n\n- [OpenCode](https://opencode.ai) installed\n- [Bun](https://bun.sh/) \u003e= 1.0.0\n- `@tokentop/plugin-sdk` ^1.0.0 (peer dependency)\n\n## Permissions\n\n| Type | Access | Paths |\n|------|--------|-------|\n| Filesystem | Read | `~/.local/share/opencode`, `~/.config/opencode` |\n\n## Development\n\n```bash\nbun install\nbun run build\nbun test\nbun run typecheck\n```\n\n## Contributing\n\nSee the [Contributing Guide](https://github.com/tokentopapp/.github/blob/main/CONTRIBUTING.md). Issues for this plugin should be [filed on the main tokentop repo](https://github.com/tokentopapp/tokentop/issues/new?template=bug_report.yml\u0026labels=bug,agent-opencode).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokentopapp%2Fagent-opencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftokentopapp%2Fagent-opencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokentopapp%2Fagent-opencode/lists"}