feat: track Junie as an AI Gateway client - #28266
Merged
Merged
Conversation
Junie CLI sends a 'Junie:<version>' user agent, which AI Gateway did not recognize, so every Junie session was recorded as 'Unknown'. Detect it in GuessClient, add the client icon, and document the Junie client setup.
Contributor
Docs previewCheck off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here. |
matifali
marked this pull request as draft
August 18, 2026 15:02
Only 'junie:' has been observed from the Junie CLI. Drop the 'junie/' prefix, which was an unverified guess.
matifali
marked this pull request as ready for review
August 19, 2026 09:57
pawbana
approved these changes
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Junie CLI works with AI Gateway, but every Junie session is recorded as
Unknown. Junie sendsUser-Agent: Junie:SNAPSHOT(observed directly from the CLI), whichGuessClientdoes not match, so usage, spend, and audit views cannot attribute Junie traffic. There were also no docs for pointing Junie at AI Gateway.Fix
junie:user-agent prefix and add theJunieclient value.Roo CodeandCharm Crushto the documentedclientfilter values. Both were already implemented but missing from the list.Supported configurations
OpenAIResponses/openai/v1/responsesAnthropic/anthropic/v1/messagesBYOK works on both through
extraHeaderswithX-Coder-AI-Governance-Token.Preview: https://coder.com/docs/@matifali-junie-ai-gateway-client/ai-coder/ai-gateway/clients/junie