Kimi Code + Headroom field test: managed OAuth routing workaround and early K3-256k results #3182
pulmhealth
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I spent some time testing Headroom 0.36.2 with Kimi Code/K3-256k on a real data-governance workload and ran into an interesting routing issue with Kimi’s managed OAuth provider. I eventually got it working and thought the results and workaround might be useful to the team and anyone else testing Kimi.
My setup
I originally launched Kimi using:
The wrapper showed:
but Kimi requests were not actually reaching the Headroom proxy.
/statsshowed zero model requests and only my own GETs to/stats.I eventually traced this to the Kimi managed provider in
~/.kimi-code/config.toml:My K3-256k model was explicitly bound to that managed provider, so it appears the configured provider URL was taking precedence over
KIMI_BASE_URL.I created a separate provider in an isolated Kimi profile that reused the existing OAuth reference but pointed
base_urlto Headroom:After reloading the Kimi config, routing immediately worked.
Headroom then showed:
So there may be an opportunity for
headroom wrap kimito detect a Kimi managed provider and either override/clone its configuredbase_url, or at least warn whenKIMI_BASE_URLwill not affect the selected model.Controlled test
I also ran a small controlled real-world test after establishing a baseline.
Baseline
After a bounded document-analysis task
Test-only delta
What was more interesting to me than the raw compression percentage was the cache behavior.
For the three workload requests:
Headroom overhead also dropped considerably after the first request:
So for this workload, I’d characterize the result as modest compression, very good prefix-cache preservation, and effectively negligible proxy overhead once warm.
One thing I’m still trying to understand: Kimi token accounting
For example, an individual request reported:
The difference between original and optimized is much larger than the credited
tokens_saved.At the aggregate level, however:
reconcile correctly, so I used those fields for the 3.17% calculation.
Is that difference expected because the
input_tokens_originalvalue includes tool/schema material that is treated differently in Headroom's savings accounting?Overall
Overall, this has been a positive test. Kimi K3-256k is now successfully running through Headroom, output quality held up well, and cache behavior looks particularly good.
Happy to provide sanitized
/statsoutput or test the Kimi wrapper behavior further if it would be useful.****All reactions