Feature: route coding agents' built-in model providers (e.g. Cline account models) through GoModel so their usage is tracked
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- go
- Domain
- backend-api-design
Research direction
Start with the existing OpenCode agent guide at docs/guides/opencode-and-other-agents.mdx and the OpenCode Go provider docs at docs/providers/opencode-go.mdx; the issue also points to Kilo Gateway support in #537. First determine which built-in agent services expose compatible endpoints and credentials, and whether a base_url override already covers them. Done means a decided scope and a working proxy path with usage tracking, or documentation explaining which existing providers and overrides cover the use case.
Written by the indexing model from the issue text.
Description
Summary
A Discord user wants to track usage of the built-in models that coding agents like Cline and OpenCode ship with (the agent's own hosted provider/subscription), not just models they configure against an OpenAI-compatible base URL. Today, when they pick an agent's built-in model, traffic bypasses GoModel entirely and the usage data is lost.
What already exists:
- Pointing agents at GoModel as an OpenAI-compatible base URL is documented in
docs/guides/opencode-and-other-agents.mdx. - OpenCode Zen's Go subscription is supported as a provider (
docs/providers/opencode-go.mdx), and Kilo Gateway was added (#537).
Gap: there is no provider/adapter for agent-hosted model services such as Cline's own account models (and possibly OpenCode Zen pay-as-you-go, if it isn't covered by overriding the opencode-go base_url). The ask is for GoModel to be able to sit in front of those so the agent still uses its built-in models while GoModel records usage.
Possible directions (to be evaluated):
- Add native providers for agent-hosted model services where they expose an API key and OpenAI-compatible endpoint.
- Document which built-in agent providers can already be reached through existing providers with a
base_urloverride.
Quote
Can I merge analytics from different GoModel instances, two DBs? And, how to track usage of built-in models of AI agents like Cline, Opencode etc.? Can you add a proxy? I love analytics and charts!
I mean, when I'm using their built-in models, no way to use them through GoModel and the data is lost
Source
Discord #general: https://discord.com/channels/1470354066524868676/1470354067875303426/1563259541410414613
(original message: https://discord.com/channels/1470354066524868676/1470354067875303426/1563246511008120903; the analytics-merge part is tracked in #1247)
This issue was created from feedback on the GoModel Discord.
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 111
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 123
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ENTERPILOT/GoModel
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
ENTERPILOT/GoModel#1290 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
ENTERPILOT/GoModel#1287 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
ENTERPILOT/GoModel#1286 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 46/100
ENTERPILOT/GoModel#1285 ·
Maintainers usually reply within 1 day
-
Merge usage analytics from multiple GoModel instances with separate databasesPossibly taken @SantiagoDePolonia claimed this 3 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
ENTERPILOT/GoModel#1247 ·
Maintainers usually reply within 1 day
All issues in ENTERPILOT/GoModel
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
superplanehq/superplane#9007 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
yetone/magpie#3905 · 1 comment ·
Maintainers usually reply within 1 day