Skip to content

Add multi-provider AI model selection and SSH remote access#41

Closed
mithun50 wants to merge 2 commits intomainfrom
feat/ai-providers-ssh-access
Closed

Add multi-provider AI model selection and SSH remote access#41
mithun50 wants to merge 2 commits intomainfrom
feat/ai-providers-ssh-access

Conversation

@mithun50
Copy link
Copy Markdown
Owner

@mithun50 mithun50 commented Mar 1, 2026

Summary

  • Add GUI to select AI providers (Anthropic, OpenAI, Google Gemini, OpenRouter, NVIDIA NIM, DeepSeek, xAI) and configure API keys/models, writing config to ~/.openclaw/openclaw.json
  • Add SSH remote access management — start/stop sshd, set root password, show connection info with copyable commands
  • Add "AI Providers" and "SSH Access" cards to the dashboard

New Files

  • lib/models/ai_provider.dart — Provider data model with 7 built-in providers
  • lib/services/provider_config_service.dart — Read/write provider config via Node.js safe-merge
  • lib/screens/providers_screen.dart — Provider list with Active/Configured badges
  • lib/screens/provider_detail_screen.dart — API key + model selection form
  • lib/services/ssh_service.dart — SSH server lifecycle operations
  • lib/screens/ssh_screen.dart — SSH management UI

Test plan

  • Tap "AI Providers" → see list of 7 providers
  • Select Anthropic → enter API key → save → verify openclaw.json updated
  • Verify active model badge shows on providers list
  • Remove provider config and verify cleanup
  • Install OpenSSH from Packages → open SSH Access
  • Set root password → start server on port 8022
  • Verify connection info displays IPs and copyable ssh commands
  • Stop server and verify status updates

mithun50 added 2 commits March 1, 2026 14:31
…RL, SSH package (#37, #38)

- Fix Ctrl+Arrow/Home/End/PgUp/PgDn sending raw sequences instead of
  xterm Ctrl-modified variants (e.g. \x1b[1;5A for Ctrl+Up)
- Make gateway dashboard URL clickable (opens WebDashboardScreen) with
  primary color + underline styling and open_in_new icon button
- Add "Configure" quick action card running `openclaw configure` in terminal
- Add OpenSSH as optional package (apt-get install openssh-client openssh-server)

Co-Authored-By: Mithun Gowda B <mithungowda.b7411@gmail.com>
- Add AiProvider data model with 7 built-in providers (Anthropic, OpenAI,
  Google Gemini, OpenRouter, NVIDIA NIM, DeepSeek, xAI)
- Add ProviderConfigService to read/write provider config in openclaw.json
  using Node.js safe-merge pattern
- Add ProvidersScreen listing all providers with Active/Configured badges
- Add ProviderDetailScreen with API key form and model dropdown
- Add SshService for sshd lifecycle (start/stop, password, IP discovery)
- Add SshScreen with service control, password management, and connection
  info with copyable ssh commands
- Add AI Providers and SSH Access cards to dashboard

Co-Authored-By: Mithun Gowda B <mithungowda.b7411@gmail.com>
@mithun50
Copy link
Copy Markdown
Owner Author

mithun50 commented Mar 1, 2026

Merged into #42

@mithun50 mithun50 closed this Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant