Skip to content

bug: cora auth login not scriptable despite --provider and --api-key flags #184

Closed

Description

@ajianaz

Description

cora auth login --provider zai --api-key <key> still enters interactive mode asking for provider selection and API key input. The --provider and --api-key flags are ignored.

Impact

  • Cannot automate cora setup in CI/CD or Dockerfile
  • Must use printf pipe as workaround, which is fragile

Expected Behavior

cora auth login --provider zai --api-key sk-xxx
# Should write to ~/.cora/auth.toml non-interactively

Workaround

Write ~/.cora/auth.toml directly:

[auth]
api_key = "sk-xxx"

Activity

  1. added
    bug
    on Jun 6, 2026
  2. ajianaz commented on Jun 7, 2026

    @ajianaz
    CollaboratorAuthor

    Fixed by PR #203. cora auth login --provider zai --api-key test123 --force now works non-interactively. Also supports auto-detection of provider env vars (e.g. cora auth login --provider zai picks up ZAI_API_KEY automatically).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions