Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: track Junie as an AI Gateway client - #28266

Merged
matifali merged 7 commits into
mainfrom
matifali/junie-ai-gateway-client
Aug 19, 2026
Merged

feat: track Junie as an AI Gateway client#28266
matifali merged 7 commits into
mainfrom
matifali/junie-ai-gateway-client

Conversation

@matifali

@matifali matifali commented Aug 18, 2026

Copy link
Copy Markdown
Member

Problem

Junie CLI works with AI Gateway, but every Junie session is recorded as Unknown. Junie sends User-Agent: Junie:SNAPSHOT (observed directly from the CLI), which GuessClient does not match, so usage, spend, and audit views cannot attribute Junie traffic. There were also no docs for pointing Junie at AI Gateway.

Fix

  • Detect the observed junie: user-agent prefix and add the Junie client value.
  • Add the Junie icon so sessions render with a logo instead of the fallback question mark.
  • Add a Junie client page and list it in the compatibility table.
  • Add Roo Code and Charm Crush to the documented client filter values. Both were already implemented but missing from the list.

Supported configurations

Provider API type Endpoint
OpenAI OpenAIResponses /openai/v1/responses
Anthropic Anthropic /anthropic/v1/messages

BYOK works on both through extraHeaders with X-Coder-AI-Governance-Token.

Preview: https://coder.com/docs/@matifali-junie-ai-gateway-client/ai-coder/ai-gateway/clients/junie

🤖 This PR was created with the help of Coder Agents, and needs a human review. 🧑‍💻

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.
@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Docs preview

Check 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
matifali marked this pull request as draft August 18, 2026 15:02
@matifali
matifali marked this pull request as ready for review August 19, 2026 09:57
@matifali
matifali requested a review from pawbana August 19, 2026 14:50
Comment thread docs/ai-coder/ai-gateway/clients/junie.md
@matifali
matifali merged commit 7ff1278 into main Aug 19, 2026
36 checks passed
@matifali
matifali deleted the matifali/junie-ai-gateway-client branch August 19, 2026 16:13
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants