Repository navigation
feat: use kody login OAuth as Bearer for execute --local - #14
Merged
Merged
Conversation
When --token / KODY_API_TOKEN is unset, execute --local now sends the stored CLI OAuth access token as Authorization Bearer (no tokenCreate exchange). Documents the Open API gap (kentcdodds/kody#2812) when OAuth is rejected, and keeps API tokens winning when set. Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
kody-bot
marked this pull request as ready for review
October 1, 2026 20:30
Owner
|
@cursor review |
|
Skipping Bugbot: Unable to authenticate your request. Please make sure Bugbot is properly installed and configured for this repository. |
|
🎉 This PR is included in version 1.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
execute --localno longer requires minting/pasting a temporaryKODY_API_TOKENwhen the user already haskody login.Auth priority:
--token/KODY_API_TOKEN(unchanged; still wins)Authorization: Bearer …(no under-the-hoodtokenCreate)kody loginor provide a tokenPlatform dependency
Open API currently accepts only
kody_at_…API tokens (ADR 0053). Live probe: non-kody_at_Bearer →401 Invalid API token(credential class rejection, not missing scopes).Platform issue with the minimal fix: kentcdodds/kody#2812 — accept CLI MCP OAuth on CapabilityProxy + package-graph, gated by the
local-executeflag with the full MCP grant.Until that lands, login-backed
--localgets a clear 401 pointing at #2812 and how to mint a scoped token as a workaround. No hosted MCPexecutefallback.Tests
--tokenstill wins over a stored login sessionkody_at_names the platform gapDocs
README, help, and skill updated for the new priority and platform gap.