Skip to content

feat(model): add master token accessor#347

Draft
bussyjd wants to merge 1 commit intofeat/x402-pre-merge-followupfrom
feature/model-token-accessor
Draft

feat(model): add master token accessor#347
bussyjd wants to merge 1 commit intofeat/x402-pre-merge-followupfrom
feature/model-token-accessor

Conversation

@bussyjd
Copy link
Copy Markdown
Collaborator

@bussyjd bussyjd commented Apr 17, 2026

Summary

Adds obol model token as a direct accessor for the LiteLLM master token stored in-cluster.

Why

Production-readiness testing found that API consumers currently have to discover the LiteLLM master token by reading the litellm-secrets Secret manually via obol kubectl get secret .... This PR turns the existing internal accessor into a supported CLI path.

What changed

  • added model token subcommand
  • prints the LiteLLM master token in human mode
  • returns {"token": ...} in JSON mode
  • added command-structure coverage in cmd/obol/model_test.go

Validation

  • go test ./cmd/obol

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