Skip to content

HTTP store when CONTROL_PLANE_URL is set - #43

Merged
susheem-k merged 2 commits into
mainfrom
feat/control-plane-http-store
Aug 14, 2026
Merged

HTTP store when CONTROL_PLANE_URL is set#43
susheem-k merged 2 commits into
mainfrom
feat/control-plane-http-store

Conversation

@susheem-k

Copy link
Copy Markdown
Collaborator

Summary

  • ControlPlaneClient.from_env() prefers CONTROL_PLANE_URL (then TOKENOPS_URL).
  • Remote mode uses HttpStore for runs, governance, ledger, and run records — no local SQLite.
  • TOKENOPS_EMBEDDED=1 still uses the in-process Store.

Companion: control-plane PR (the process that owns SQLite).

Test plan

  • Pre-commit / mypy on this branch
  • With CONTROL_PLANE_URL set, register a run and confirm it appears on the plane TokenOps tab
  • Confirm no tokenops.db is created in remote mode

Made with Cursor

susheem-k and others added 2 commits August 13, 2026 23:50
When CONTROL_PLANE_URL or TOKENOPS_URL is set, HttpStore carries governance, ledger, and run records so the sidecar never touches a local database file.

Co-authored-by: Cursor <cursoragent@cursor.com>
Registration used a bare httpx client, so TokenOps failed with 401 whenever CONTROL_PLANE_API_KEYS was set.

Co-authored-by: Cursor <cursoragent@cursor.com>
@susheem-k
susheem-k merged commit 0d08a79 into main Aug 14, 2026
3 checks passed
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.

1 participant