Implementation:ARCANGEL0 EVA OnboardingScreen
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Onboarding, UI_Architecture, Configuration |
| Last Updated | 2026-10-29 14:00 GMT |
Overview
Concrete tool for guiding first-run setup — provider selection, API key entry, model loading, search engine configuration, and companion/theme selection — as a Textual TUI wizard screen.
Description
The OnboardingScreen class is a multi-step Textual wizard screen that guides the operator through initial configuration:
- Provider selection: Navigate a list of 9 providers (OpenAI, Anthropic, OpenRouter, Ollama, DeepSeek, Moonshot, NVIDIA NIM, Cloudflare, Custom) with key bindings.
- API key and base URL entry: Textual Input widgets for the API key and base URL, with defaults loaded from the provider catalog.
- Model list loading: Calls `list_models` via an async worker and displays results in an OptionList for selection.
- Search engine configuration: Opens a `SearchEnginePanel` dialog for enabling/configuring web search engines, including SearXNG setup.
- Companion and theme selection: Presents companion sprites (16 options) and themes (7 options) for selection.
- Configuration persistence: Saves the complete profile via `CredentialStore.save_profile` and preferences via `PreferencesStore.save`.
The wizard supports a `configuration_mode` parameter to skip steps ("provider" or "model") when reconfiguring specific settings.
Usage
- First run: Launched by `MitsuApp` when no onboarding is complete or no provider is configured.
- Reconfiguration: Launched with `configuration_mode="provider"` or `"model"` to skip unrelated steps.
Code Reference
Source Location
- Repository: Mitsu
- File: tui/onboarding.py
Signature
class OnboardingScreen(Screen):
def __init__(
self,
credentials: CredentialStore,
preferences: PreferencesStore,
configuration_mode: str | None = None,
) -> None: ...
Import
from mitsu.tui.onboarding import OnboardingScreen
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| credentials | CredentialStore | Yes | Credential store for saving provider profiles |
| preferences | PreferencesStore | Yes | Preferences store for saving theme/companion |
| configuration_mode | None | No | "provider" or "model" to skip steps during reconfiguration |
Outputs
| Name | Type | Description |
|---|---|---|
| side effect | None | Persists credentials and preferences; routes to MainMenuScreen |
Usage Examples
Launch Full Onboarding
from mitsu.tui.onboarding import OnboardingScreen
from mitsu.config.storage import CredentialStore, PreferencesStore
credentials = CredentialStore()
preferences = PreferencesStore()
# From within a Textual App
await self.switch_screen(OnboardingScreen(credentials, preferences))
Launch Provider Reconfiguration
# Only show the provider selection and API key steps
await self.switch_screen(
OnboardingScreen(credentials, preferences, configuration_mode="provider")
)
Related Pages
Implements Principle
Requires Environment
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment