Skip to content

docs(sdks/python-cli): add Polish quickstart guide (#13373) - #13374

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

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

Conversation

@CreamPle

@CreamPle CreamPle commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Resolves #13373.

Adds a comprehensive, idiomatic Polish quickstart guide (sdks/python-cli/examples/quickstart.pl.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 the Polish quickstart! The structure and coverage are genuinely good, and several details are exactly right: the package-name vs binary distinction, the pipx guidance, the OMI_API_KEY precedence tip (env key wins only when the profile has no stored key -- verified), --json placement before subcommands, the jq recipes, exit codes 0/3/4/5, and the security section. The two link edits in sdks/python-cli/README.md and sdks/python-cli/examples/README.md are also correct and consistent with the Japanese guide pattern.

Unfortunately, most of the runnable commands in quickstart.pl.md don't match the current CLI, so the guide would fail for Polish-speaking users at nearly every step. I verified each item below against sdks/python-cli/omi_cli on main:

Commands that fail as written

  1. omi memory create --text "..." (Wspomnienia section and the Bash script): memory create takes the content as a positional argument -- omi memory create "tresc". There is no --text option.
  2. omi memory search "...": no search subcommand exists (only list/get/create/update/delete). Please remove it or replace with omi --json memory list + jq filtering.
  3. omi conversation export conv_123456 --format markdown: no export subcommand. Use omi conversation get conv_123456 --include-transcript.
  4. omi action-item list --status pending: the filter is a --completed/--open flag -- omi action-item list --open.
  5. omi goal create --title "..." --horizon month: the title is positional and --horizon does not exist. For a qualitative goal: omi goal create "Ukonczyc dokumentacje wielojezyczna". Metric goals use --target/--type/--current/--min/--max/--unit.
  6. omi goal update goal_345678 --progress 75: there is no --progress option; the supported option is --current (sets current_value) -- omi goal update goal_345678 --current 75.
  7. omi local configure --port 8000: local configure has no --port and requires both --url and --token, e.g. omi local configure --url http://127.0.0.1:47778 --token YOUR_DESKTOP_TOKEN (same form as the Japanese guide).
  8. omi --profile staging --api-url https://api-staging.omi.me memory list: the global override flag is --api-base, not --api-url.
  9. omi auth login --api-key (headless section): --api-key expects the key as its value (visible in shell history), or pipe it: omi auth login < key.txt. There is no paste-afterwards step; the stdin form is the better default for docs.

Logic errors

  1. Both script examples gate on omi auth status, but auth status exits 0 even when unauthenticated, so the guard never fires. Use omi auth whoami (live server check; exits 2 on bad credentials) or inspect the authenticated field of omi --json auth status.
  2. The PowerShell example reads $($_.progress) from goal list JSON, but goals expose current_value and target_value -- progress does not exist, so Postep would always be empty. Compute the percentage from those two fields.
  3. Exit-code table: a malformed API key (wrong prefix or too short) fails client-side validation with exit code 1, not 2; only server-rejected credentials (401/403) exit 2. The Click-syntax-errors-returns-2 half of that row is correct.

The merged Japanese guide (examples/quickstart.ja.md) is the best reference -- most corrected forms above match its examples exactly, so aligning with it should be quick.

Note on CI: the Linux/Python and Windows ACL job failures are pre-existing on main (same test failure on the latest main run) and unrelated to this docs-only change -- nothing you need to do about that.

Once the commands match the CLI, this is a welcome addition. Thank you for translating it!

-- automated review on behalf of the Omi maintainers; a human maintainer makes the final call


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
… 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 forms across sdks/python-cli/examples/quickstart.pl.md were aligned with the CLI contract (positional memory/goal creation, --open, goal update --current, --api-base, --url/--token, �uth whoami, and exit code contract). In addition, commit 5994071 updates the API-key login snippet to include the explicit placeholder omi auth login --api-key omi_dev_... matching the Japanese reference 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 Polish quickstart; all 12 command-accuracy issues from review (positional args, auth whoami, goal update --current, local configure, --api-base, exit-code nuance) are fixed at current head (5994071) — 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:50

All twelve command-accuracy concerns from this review (memory create --text, the nonexistent memory search / conversation export / goal update --progress / --api-url usages, action-item --status, goal create/update option shapes, local configure --port, auth-status gating in both scripts, the PowerShell progress field, and the exit-code 1-vs-2 mapping) are verified fixed in quickstart.pl.md at a162d2d, cross-checked against sdks/python-cli/omi_cli at the same head. Dismissing as resolved; see the follow-up comment for the per-item verification.

@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

Thanks @CreamPle — I re-checked the updated guide command-by-command against the CLI source at the current head, including after the recent merge from main (which touched sdks/python-cli/omi_cli). Everything from the earlier automated review is resolved:

  • memory create takes the content positionally with --category — matches commands/memory.py
  • the nonexistent memory search, conversation export, goal update --progress, and --api-url usages are gone; the replacements (omi --json memory list + jq, conversation get --include-transcript) are correct
  • action-item list --open and goal create "..." --type numeric --target 2 --unit liters match commands/action_item.py / commands/goal.py (--unit correctly paired with --target)
  • both shell examples now gate on omi auth whoami (non-zero on auth failure), and the PowerShell example uses ConvertFrom-Json + Select-Object id, content, category instead of the nonexistent progress field
  • the exit-code table now splits validation errors (1) from auth/Click-syntax errors (2), matching omi_cli/errors.py
  • §7 now configures the Desktop integration via OMI_LOCAL_API_URL / OMI_LOCAL_TOKEN with omi --json local status and local search-screen "..." --days 7 --app Safari — matches config.py / commands/local.py
  • omi auth login --api-key omi_dev_... documents the key-as-value form with the shell-history caveat, with the hidden interactive paste kept as the default — matches commands/auth.py

Per file:

  • examples/quickstart.pl.md — commands, options, and JSON field names now match the CLI; the OMI_API_KEY note (env key applies only when the profile has no stored key, hence logout-first) is accurate
  • README.md — the localized-guides line correctly combines the Japanese, Spanish, and Polish links after the merge
  • examples/README.md — the new entry follows the existing per-language list

With the accuracy issues resolved I've removed docs-accuracy and dismissed the earlier changes-requested review. Together with the maintainer approval above, this looks ready. Thank you for patiently working through all twelve items!

-- automated review on behalf of the Omi maintainers; a human maintainer makes the final call


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 Polish translation, matches verified command template, no fabricated commands

@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] Polish quickstart for omi-cli ($25 proposed)

3 participants