Skip to content

showing zero cost with latest opencode #87

Description

@tan-wei-xin-alez

I think it was working last month before opencode was updated

➜  ~ npx copilot-arewecooked --terminal
copilot-arewecooked
Period: all available data

━━ Sources ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
No Copilot usage found.

━━ Included credit comparison (monthly average) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Monthly average: 0 AI credits ($0)
Plan        Included  Remaining     %
----------  --------  ---------  ----
pro            1,000      1,000  100%
pro+           3,900      3,900  100%
business       1,900      1,900  100%
enterprise     3,900      3,900  100%

━━ Model usage and cost (total) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
No priced model usage found.
➜  ~ opencode --version
1.16.0
➜  ~ du -sh .local/share/opencode/*
4.0K    .local/share/opencode/account.json
4.0K    .local/share/opencode/auth.json
18M     .local/share/opencode/log
25M     .local/share/opencode/opencode.db
32K     .local/share/opencode/opencode.db-shm
4.0M    .local/share/opencode/opencode.db-wal
4.0K    .local/share/opencode/repos
788K    .local/share/opencode/snapshot
408K    .local/share/opencode/storage
148K    .local/share/opencode/tool-output

Just to confirm, I am using github copilot in opencode

  ┃                                                                                                                                  Test conversation
  ┃  test
  ┃                                                                                                                                  Context
                                                                                                                                     8,003 tokens
     I’m in Plan Mode (read‑only). I won’t change any files until you confirm and I leave Plan Mode. I don’t yet know your goal      3% used
     — please pick one from the list below or describe a different objective. After you pick, I’ll produce a concrete,               $0.00 spent
     step‑by‑step execution plan and ask any clarifying questions needed.
                                                                                                                                     LSP
     Choose a goal (or reply with your own):                                                                                         LSPs are disabled

     1. Fix a failing test or runtime error.
     2. Implement a new feature (describe feature).
     3. Refactor/rename a public API or function across the repo.
     4. Add or improve unit/integration tests for an area (specify area).
     5. Upgrade dependencies safely.
     6. Add or fix CI configuration (tests, linters, coverage).
     7. Triage and reduce a specific bug (paste error/stacktrace).
     8. General code review and risk report for a pull request/branch.
     9. Other — describe.

     If you pick one, tell me:

     - The repo path/branch to work against (if applicable).
     - Any hard constraints (backwards compatibility, performance, delivery date).
     - How you want verification: run unit tests locally, lint, typecheck, build artifact, or provide patch only.
     - If relevant, paste the failing log/error or link to the issue/PR.

     Example quick plan I’ll produce after you choose “Fix a failing test”:

     1. Read code and test that’s failing; reproduce locally (read-only: inspect files and test outputs you provide).
     2. Grep for related functions/types and call sites to understand scope.
     3. Propose the minimal code change with rationale and edge cases.
     4. Apply change in a single commit, run tests, fix regressions.
     5. Add a focused unit test if the bug was untested.
     6. Push branch/PR and include concise change description and risk notes.

     Tell me which goal and any details, and I’ll produce a tailored, executable plan and list the exact read‑only inspections
     I’ll perform first.

  ┃
  ┃
  ┃
  ┃  Plan · GPT-5 Mini GitHub Copilot                                                                                                ~/opencode
  ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                                                                                               8.0K (3%) · $0.00  ctrl+p commands    • OpenCode 1.16.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions