feat: Interactive CLI Wizard for Zero-Config Onboarding#360
Open
mrbeandev wants to merge 1 commit intosipeed:mainfrom
Open
feat: Interactive CLI Wizard for Zero-Config Onboarding#360mrbeandev wants to merge 1 commit intosipeed:mainfrom
mrbeandev wants to merge 1 commit intosipeed:mainfrom
Conversation
Implement an interactive TUI setup wizard that launches automatically when no config file is found. Guides users through provider, model, and channel setup in ~1 minute. Features: - Auto-detect environment (Ollama, network, NPU hardware) - Arrow-key interactive menus with vim j/k support - Masked API key input via readline - Dynamic model list fetching from provider APIs: OpenRouter, OpenAI, Anthropic, Gemini, Groq, Zhipu, Ollama/vLLM - Searchable model selector (type-to-filter) for large lists (>20 models) - Smart defaults based on detected environment - Progress bar and info boxes for guided experience - Graceful fallback for non-interactive terminals - Generates valid config.json and offers to auto-start the agent Closes sipeed#350
5 tasks
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.
Summary
Closes #350
I implemented an interactive TUI setup wizard that launches automatically when no configuration file is detected. Running
./picoclawwithout a config now guides users through the entire setup in about a minute instead of erroring out.What it does
Step 1: Environment Detection
/dev/apex_0,/dev/npu,/dev/rknn)Step 2: AI Provider Setup
*)Step 3: Channel Selection
Step 4: Review & Save
config.jsonto~/.picoclaw/Technical details
golang.org/x/sys/unix(TCGETS/TCSETS) for arrow-key menusFiles changed
cmd/picoclaw/main.go— 3-line trigger: if no args + no config → run wizardcmd/picoclaw/wizard.go— Full wizard implementation (1271 lines)cmd/picoclaw/wizard_test.go— 10 tests, all passingTesting