Skip to content

feat: /login command + auto-select Altimate model#111

Closed
suryaiyer95 wants to merge 1 commit intomainfrom
feat/login-command-auto-model
Closed

feat: /login command + auto-select Altimate model#111
suryaiyer95 wants to merge 1 commit intomainfrom
feat/login-command-auto-model

Conversation

@suryaiyer95
Copy link
Copy Markdown
Contributor

Summary

  • Add /login slash command — 3-step wizard (Backend URL → Tenant → API Key) that writes ~/.altimate/altimate.json
  • Auto-select altimate-backend/altimate-default model when credentials are configured — no provider or model picker workflow needed
  • Replace 3 separate Claude model entries with single "Altimate AI" model (backend handles model routing via litellm)
  • Fix hardcoded localhost:8000 URL to use configured creds.altimateUrl

How it works

  1. User types /login → enters Altimate URL, tenant name, API key
  2. Credentials saved to ~/.altimate/altimate.json with 0600 permissions
  3. Providers refresh → altimate-backend auto-loads → model auto-selected
  4. On subsequent launches, if credentials exist, everything just works — no dialogs

Test plan

  • /login → complete all 3 steps → verify ~/.altimate/altimate.json written correctly
  • After login, model should auto-select to "Altimate AI" without manual selection
  • Fresh launch with existing credentials → should skip provider/model dialogs
  • Without credentials → existing provider selection flow unchanged

🤖 Generated with Claude Code

- Add `/login` slash command with 3-step wizard (URL, tenant, API key)
  that writes credentials to `~/.altimate/altimate.json`
- Auto-select `altimate-backend/altimate-default` model when credentials
  are configured — no provider or model selection needed
- Replace 3 separate Claude model entries with single "Altimate AI" model
  (backend handles model routing via litellm fallback chain)
- Fix hardcoded `localhost:8000` URL to use `creds.altimateUrl` from
  credential file

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot closed this Mar 12, 2026
@suryaiyer95 suryaiyer95 deleted the feat/login-command-auto-model branch March 12, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant