Skip to content

Conversation

@Kathie-yu
Copy link

@Kathie-yu Kathie-yu commented Feb 3, 2026

Summary

Add Warp terminal AI provider for tracking credit usage. This enables CodexBar users to monitor their Warp AI credits directly from the menu bar.

Closes #160

Features

  • API-based fetching via Warp's usage API

  • API key authentication - stored in ~/.codexbar/config.json (gitignored)

  • Displays credit usage percentage (using Warp’s signature purple tab highlight) and the reset date.

Screenshots

*Menu Bar *

CodexBar‑styled Warp icon official Brand Logo
CleanShot 2026-02-03 at 23 31 32@2x image.png

The CodexBar‑styled icon blends CodexBar’s playful look with Warp’s signature diagonal line, giving it a mysterious ninja vibe 🥷.

Icon style can be selected in Settings.

Settings

image.png

Files Added/Modified

Core Implementation:

  • Sources/CodexBarCore/Providers/Warp/WarpProviderDescriptor.swift - Provider metadata

  • Sources/CodexBarCore/Providers/Warp/WarpUsageFetcher.swift - API-based usage fetching

  • Sources/CodexBarCore/Providers/Warp/WarpSettingsReader.swift - Settings reader

UI Integration:

  • Sources/CodexBar/Providers/Warp/WarpProviderImplementation.swift - Provider implementation

  • Sources/CodexBar/Providers/Warp/WarpSettingsStore.swift - Settings persistence

  • Sources/CodexBar/Resources/ProviderIcon-warp.svg - Warp icon

  • Sources/CodexBar/IconRenderer.swift - Icon rendering with Warp purple color

Documentation:

  • docs/warp.md - Provider documentation

  • docs/providers.md - Updated provider list

Integration Files (updated with .warp enum cases):

  • Provider registries, logging categories, widget support, etc.

How It Works

  1. User generates API key at app.warp.dev

  2. Paste API key in CodexBar Settings → Providers → Warp

  3. CodexBar fetches usage data via Warp API

  4. Shows credits percentage and reset date in menu bar

Testing

  • Manual verification: ./Scripts/compile_and_run.sh

  • swift test (timed out locally; CI will re-run)

  • swiftformat Sources Tests (not installed locally; CI will verify)

  • swiftlint --strict (not installed locally; CI will verify)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

warp.dev support?

1 participant