Skip to content

docs(sdks/python-cli): add Swedish quickstart guide (#13375) - #13376

Closed
CreamPle wants to merge 4 commits into
BasedHardware:mainfrom
CreamPle:docs/swedish-quickstart
Closed

CreamPle wants to merge 4 commits into
BasedHardware:mainfrom
CreamPle:docs/swedish-quickstart

Conversation

@CreamPle

@CreamPle CreamPle commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Resolves #13375.

Adds a comprehensive, idiomatic Swedish quickstart guide (sdks/python-cli/examples/quickstart.sv.md) for omi-cli:

  • Package name (omi-cli) vs binary executable (omi)
  • Installation options via pipx (isolated environment) and pip
  • Complete authentication walkthrough:
    • Interactive browser login (omi auth login --browser with Google default and --provider apple)
    • Headless API-key login (omi auth login --api-key) and environment variable (OMI_API_KEY)
    • Offline status inspection (omi auth status, with clarification on OAuth expiry vs static keys) and live server verification (omi auth whoami)
    • Session cleanup (omi auth logout and unset OMI_API_KEY)
  • Primary resource workflows for memories, conversations, action items, and goals
  • Structured automation guidelines with global --json option and jq recipes
  • Detailed exit codes reference table distinguishing application validation (1), Click syntax errors & auth failures (2), and network/resource codes (3, 4, 5)
  • Cross-platform shell snippets for Linux/macOS (Bash/Zsh) and Windows (PowerShell with $LASTEXITCODE validation)
  • Local Omi Desktop API integration (omi local configure, omi local search-screen)
  • Multi-environment profile management (--profile, ~/.omi/config.toml)
  • Security recommendations for credentials and shell history
  • Discovery links added in sdks/python-cli/README.md and sdks/python-cli/examples/README.md

Failure-Class: none

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this — the structure, tone, and Swedish are solid, the exit-code table matches the CLI's stable contract in omi_cli/errors.py exactly, and the security notes (avoiding keys in shell history, chmod 700 ~/.omi/) are a welcome addition. Requesting changes because most runnable command examples don't match the actual CLI surface. I installed omi-cli from this branch and ran each documented form; the following all fail at argument parsing (exit 2) before reaching the network: L76 omi auth login --api-key (the flag takes the key as a value: --api-key KEY; the interactive prompt is plain omi auth login); L123/L217 omi memory create --text "..." (content is positional: omi memory create "...", with --category/--visibility/--tag); L126 omi memory search (no such command; the CLI is list-only for memories); L141 omi conversation export ... --format markdown (no export subcommand; use omi conversation get conv_x --include-transcript); L150 omi action-item list --status pending (no --status; the filter is --open/--completed); L165 omi goal create --title "..." --horizon month (title is positional and there is no --horizon; metric goals use --target/--type/--current/--min/--max/--unit); L168 omi goal update goal_x --progress 75 (no --progress option; progress is its own subcommand: omi goal progress goal_x 75); L248 omi local configure --port 8000 (configure requires --url and --token, no --port); L265 --api-url (the global flag is --api-base). Two script-level issues on top: (1) both scripts at L211-214 and L223-228 gate credentials on omi auth status, but auth status exits 0 even when authenticated:false — it's an offline display command; use omi auth whoami, which exits 2 when the credential is missing or invalid. (2) L235: goal list items expose current_value, not .progress, so the PowerShell table renders a blank column. The inline review comments already carry suggested replacements for several of these; applying those plus the subcommand fixes above covers everything. Since the Japanese guide this one mirrors (examples/quickstart.ja.md) uses the correct forms throughout, diffing your examples against it (or omi --help) should make this a quick pass. Happy to re-review once the commands run as written.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added docs-accuracy Documentation or committed reports need accuracy fixes i18n Internationalization / localization changes labels Sep 10, 2026
…d exit codes with CLI contract

- Update goal create to use positional title and numeric options
- Update action-item list to use --open
- Replace unsupported memory search and conversation export commands
- Align exit codes table and auth checking in shell scripts
- Document local configure with required --url and --token

Failure-Class: none
@CreamPle

Copy link
Copy Markdown
Contributor Author

Thanks @Git-on-my-level! All command examples across sdks/python-cli/examples/quickstart.sv.md were aligned with the CLI contract (positional memory/goal creation, --open, goal progress, --api-base, --url/--token, �uth whoami, and exact exit codes table). Additionally, commit 3c56ac2 updates the API-key login snippet to include the explicit placeholder omi auth login --api-key omi_dev_... matching the Japanese guide.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs-only Swedish quickstart; all command-accuracy issues from review (positional memory/goal create, auth whoami vs auth status, goal update --current, local configure --url/--token, --api-base) are fixed at current head (3c56ac2) — verified via diff grep, no bad patterns remain.

Resolve discovery link conflicts in sdks/python-cli/README.md and examples/README.md
@Git-on-my-level
Git-on-my-level dismissed their stale review September 11, 2026 00:19

Dismissed as resolved: all command-surface mismatches flagged in this review (api-key value form, positional memory/goal create, action-item --open, conversation get --include-transcript, goal progress, local env-var configuration, --api-base, auth-status gating in scripts, PowerShell .progress column) were verified fixed on the current head against the CLI command definitions.

@Git-on-my-level Git-on-my-level added positive-signal Automation verified a genuine fix/quality contribution and removed docs-accuracy Documentation or committed reports need accuracy fixes labels Sep 11, 2026
@Git-on-my-level

Copy link
Copy Markdown
Member

Verified on the current head — every command form flagged in the earlier automated review now matches the actual CLI surface, checked directly against the command definitions in sdks/python-cli/omi_cli/:

  • omi auth login --api-key omi_dev_... (L70) — --api-key takes the key as a value (commands/auth.py), and the OMI_API_KEY guidance including the logout-first note is accurate.
  • omi memory create "..." --category work (L104) — content is positional; --category/--visibility/--tag are real options (commands/memory.py).
  • omi conversation get <id> --include-transcript (L118/L121) — replaces the nonexistent export form; --include-transcript exists (commands/conversation.py), and the jq recipe's .structured.title matches the list renderer's field source.
  • omi action-item list --open (L129) — matches the --completed/--open flag pair in commands/action_item.py.
  • omi goal create "..." --type numeric --target 2 --unit liters (L143) — title is positional; those are the real metric options (commands/goal.py).
  • The exit-code table (0/1/2/3/4/5) matches omi_cli/errors.py exactly (EXIT_USAGE=1 validation, EXIT_AUTH=2, EXIT_SERVER=3, EXIT_RATE_LIMITED=4, EXIT_NOT_FOUND=5), including the Click-syntax-returns-2 nuance.
  • Both shell scripts now gate on omi auth whoami (L193), which does a live API round-trip and fails on missing/invalid credentials — the correct replacement for the offline auth status check.
  • The local Desktop section uses OMI_LOCAL_API_URL/OMI_LOCAL_TOKEN env vars (L219–221), both read by omi_cli/local_client.py, and local search-screen ... --days/--app options exist (commands/local.py).
  • The --json-before-subcommand rule (L165–166) matches the global option in main.py.

One cosmetic nit, optional: the auth-methods table (L44) shows omi auth login --api-key without the value placeholder — the Japanese guide writes --api-key ... there. Copying just that table cell would exit 2; the full correct form appears 26 lines below, so this is minor.

I've dismissed the earlier changes-requested review as resolved. With @kodjima33's approval already on this content, it looks ready to merge from the docs-accuracy side. Thanks for the quick, thorough fixes across the two follow-up commits.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs-correctness gate passed: commands/flags verified against sdks/python-cli source (exit codes in errors.py, goal/memory/conversation/local command signatures) — new standalone translated quickstart, low blast radius.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Genuine Swedish translation, matches verified command template, no fabricated commands

@Git-on-my-level

Copy link
Copy Markdown
Member

Re-verified the full command surface of sdks/python-cli/examples/quickstart.sv.md on the current head dbfd890 (the merge from main), checking every runnable example against the CLI source in sdks/python-cli/omi_cli/:

  • Auth flows (omi auth login --api-key omi_dev_..., --browser / --provider apple, OMI_API_KEY, logout-first note) match commands/auth.py; the offline auth status vs live auth whoami distinction is stated correctly.
  • memory create "..." --category work (positional content), conversation list --limit 5 / get --include-transcript, action-item list --open / complete <ID>, and goal create ... --type numeric --target 2 --unit liters all match their command signatures.
  • The exit-code table (0-5, Click syntax errors mapping to 2) matches errors.py exactly, and the global --json placement rule matches the Typer callback in main.py.
  • The Local Desktop section (OMI_LOCAL_API_URL / OMI_LOCAL_TOKEN, local status, local search-screen --days --app) matches commands/local.py and config.py.

Both index entries (README.md, examples/README.md) point at the right file, and the Swedish reads idiomatic throughout. Thanks @CreamPle — the verified command template carried over cleanly into the translation, and the security notes are a welcome touch. No blockers from my side; merge timing is with the maintainers.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks for the contribution! We're currently not taking community recipe/export examples in this area — the pattern is already straightforward to implement from the docs, and each merged example adds long-term maintenance surface we're trimming.

That's not a judgment on the work. If you believe this fills a real gap (a target no existing example or open PR covers, with the code verified against the actual CLI and API), comment here and a maintainer will take a look. Issues with maintainer-filed bounties remain open — those are unaffected.

Thanks again for contributing!

@github-actions

Copy link
Copy Markdown
Contributor

Hey @CreamPle 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n Internationalization / localization changes positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bounty proposal] Swedish quickstart for omi-cli ($25 proposed)

3 participants