Repository navigation
feat: cortex init — first-time setup wizard (#276) - #283
Merged
Merged
Conversation
Interactive setup that: 1. Creates ~/.cortex/ directory and config.yaml 2. Auto-detects LLM provider from env vars (OPENROUTER, GOOGLE, OPENAI) 3. Auto-detects Ollama for embeddings (health check on localhost:11434) 4. Creates or verifies the SQLite database 5. Prints actionable next steps Flags: -y Accept defaults without prompting (CI-friendly) When config exists, reports current state instead of overwriting. When LLM keys are missing, tells you exactly which env var to set. When Ollama isn't running, links to install page. All 890+ tests pass. Closes #276
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.
What
cortex init— the P0 first-time user experience. Auto-detects your environment and gets you to a working Cortex in one command.What it does
~/.cortex/directoryOPENROUTER_API_KEY,GOOGLE_API_KEY,OPENAI_API_KEY)localhost:11434)~/.cortex/config.yamlwith detected settings (or commented-out examples if nothing found)Output (existing setup)
Flags
-y— Accept defaults without prompting (CI-friendly, non-interactive)Testing
All 890+ tests pass. No test changes needed.
Closes #276
Part of adoption sprint epic #267