Skip to content

Configuration

smajt-archlinux edited this page May 14, 2026 · 1 revision

Configuration

OpenTracker stores its configuration in a JSON file.

Config File Location

~/.config/opentracker/config.json

Format

{
  "providers": {
    "opencode": {
      "workspace": "your-workspace-id"
    }
  }
}

Fields

Field Type Required Description
providers object Yes Map of provider configurations
providers.opencode object Yes OpenCode-specific config
providers.opencode.workspace string Yes Your OpenCode workspace ID

Getting Your Workspace ID

  1. Log in to OpenCode
  2. Go to your workspace dashboard
  3. The workspace ID is in the URL: https://opencode.ai/workspace/<workspace-id>

Cookie Storage

Cookies are stored in Netscape format at:

~/.config/opentracker/opencode-cookies.txt

The login command automatically imports cookies from your browser. See OpenCode for details.

Troubleshooting

"session expired or no usage data found"

Run opentracker login opencode again to refresh your cookies.

"opencode not configured"

Create the config file with your workspace ID or run the tool once — it will prompt you.

Clone this wiki locally