Skip to content

Get key from auth.json using api calls #8

Description

@EricRHancock-coder

What problem are you trying to solve?

I'd like to add the ability to use the auth key from the auth.json file (through opencode api calls) to connect to litellm in addition to the env, and opencode.json configuration. That way no matter how the environment is setup only one location is being used to get the key and by using api it avoids having to track where files are.

Is this in scope to the project? I've generated some code but I'd like to test it before doing anything with it and I'm new to this. If this is out of scope, I won't bother anymore.

Thank you

Proposed solution

Update the code so that it will search for key within auth.json in addition to opencode.json(c), and env variables.

Alternatives considered

No response

Scope check

  • My request is related to LiteLLM model discovery, configuration, or routing

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions