Conversation
JeanMertz
added this pull request to stack #1154
September 10, 2026 11:33
JeanMertz
force-pushed
the
pr5-auth-flag
branch
2 times, most recently
from
September 13, 2026 05:39
3f94dab to
03045fc
Compare
JeanMertz
force-pushed
the
pr5-auth-flag
branch
from
September 13, 2026 05:48
f8673aa to
16657bb
Compare
`jp q --auth personal` bills the turn to that credential, `--auth api_key` to per-token billing, and `--auth sub,api_key` tries the subscription first. It takes the same entries as the `auth` chain in configuration. The flag applies to the provider the turn's model belongs to and records a config delta, so the rest of the conversation bills the same way until another `--auth` changes it. Signed-off-by: Jean Mertz <git@jeanmertz.com>
The flag picks which provider's chain to write by following the turn's model, and nothing pinned that. These cover the resolution: a plain model id, an alias, an alias naming another alias, the CLI's model winning over the config layers', and the config layers answering when the CLI names no model. Three cases are about refusing rather than resolving. An alias cycle gives up at a bounded depth instead of recursing forever, a provider reached over a local socket is refused by name, and a turn with no provider at all reports the `--cfg` form that would have worked. Signed-off-by: Jean Mertz <git@jeanmertz.com>
JeanMertz
force-pushed
the
pr5-auth-flag
branch
from
September 13, 2026 06:15
16657bb to
42c0c8e
Compare
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.
jp q --auth personalbills the turn to that credential,--auth api_keyto per-token billing, and
--auth sub,api_keytries the subscriptionfirst. It takes the same entries as the
authchain in configuration.The flag applies to the provider the turn's model belongs to and records a
config delta, so the rest of the conversation bills the same way until
another
--authchanges it.