Skip to content

docs(sdks/python-cli): add Ukrainian quickstart guide (#13378) - #13380

Closed
CreamPle wants to merge 3 commits into
BasedHardware:mainfrom
CreamPle:docs/ukrainian-quickstart
Closed

CreamPle wants to merge 3 commits into
BasedHardware:mainfrom
CreamPle:docs/ukrainian-quickstart

Conversation

@CreamPle

@CreamPle CreamPle commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Resolves #13378.

Adds a comprehensive, idiomatic Ukrainian quickstart guide (sdks/python-cli/examples/quickstart.uk.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.

1 issue found across 3 files

Confidence score: 4/5

  • sdks/python-cli/examples/quickstart.uk.md and README.md document conflicting exit codes for bad flags and missing arguments, which could mislead users and make the CLI contract unclear — align both tables on the intended code.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="sdks/python-cli/examples/quickstart.uk.md">

<violation number="1" location="sdks/python-cli/examples/quickstart.uk.md:175">
P3: The exit-code table here contradicts README.md's documented 'Exit Codes (stable contract)', which this PR also edits. This guide maps bad flags/missing args to code 2, while README.md maps them to code 1. The code returns Click usage errors (unknown flag, missing argument) as exit code 2, so this guide matches reality — reconcile README.md so both docs ship one contract instead of two.</violation>
</file>

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

Re-trigger cubic

| :---: | :--- | :--- |
| `0` | **Успіх (Success)** | Команда виконана успішно. |
| `1` | **Помилка використання (Валідація)** | Недійсні значення або помилка валідації застосунку; синтаксичні помилки парсера Click повертають код `2`. |
| `2` | **Помилка автентифікації / Синтаксису CLI** | Відсутня авторизація, застарілий токен або невідомі прапорці парсера Click. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3: The exit-code table here contradicts README.md's documented 'Exit Codes (stable contract)', which this PR also edits. This guide maps bad flags/missing args to code 2, while README.md maps them to code 1. The code returns Click usage errors (unknown flag, missing argument) as exit code 2, so this guide matches reality — reconcile README.md so both docs ship one contract instead of two.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At sdks/python-cli/examples/quickstart.uk.md, line 175:

<comment>The exit-code table here contradicts README.md's documented 'Exit Codes (stable contract)', which this PR also edits. This guide maps bad flags/missing args to code 2, while README.md maps them to code 1. The code returns Click usage errors (unknown flag, missing argument) as exit code 2, so this guide matches reality — reconcile README.md so both docs ship one contract instead of two.</comment>

<file context>
@@ -0,0 +1,256 @@
+| :---: | :--- | :--- |
+| `0` | **Успіх (Success)** | Команда виконана успішно. |
+| `1` | **Помилка використання (Валідація)** | Недійсні значення або помилка валідації застосунку; синтаксичні помилки парсера Click повертають код `2`. |
+| `2` | **Помилка автентифікації / Синтаксису CLI** | Відсутня авторизація, застарілий токен або невідомі прапорці парсера Click. |
+| `3` | **Помилка сервера / Мережі (Server Error)** | Відповідь HTTP 5xx, тайм-аут з'єднання або сервер недоступний. |
+| `4` | **Обмеження запитів (Rate Limited)** | Відповідь HTTP 429 — перевищено ліміт запитів. |
</file context>

@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 and Ukrainian are solid, and this guide is notably accurate: I checked every documented command form against the omi-cli source (omi_cli/commands/*.py, omi_cli/errors.py, omi_cli/main.py, omi_cli/config.py) and the auth table, the browser/API-key flows including --provider apple, the auth status vs auth whoami distinction (including that expiry only displays for OAuth profiles), the OMI_API_KEY note about logging out first (this matches the CLI's actual precedence — the env var only takes effect when the profile has no stored key), the memory/conversation/action-item/goal examples (positional title plus --type/--target/--unit, --open, action-item complete, --include-transcript), the global --json placement rule, the exit-code table (matches the stable contract in omi_cli/errors.py exactly, including Click syntax errors exiting 2), OMI_LOCAL_API_URL/OMI_LOCAL_TOKEN, local search-screen --days/--app, --profile, ~/.omi/config.toml, and --api-base are all correct.

Requesting changes for one command that fails as written:

  • examples/quickstart.uk.md line 70: omi auth login --api-key — the flag takes the key as a value, so this form errors at argument parsing (exit 2, Option '--api-key' requires an argument) instead of prompting. For the interactive hidden-input paste the guide intends, use plain omi auth login and pick option 2; alternatively omi auth login --api-key KEY, or pipe via stdin: omi auth login < key.txt. The shorthand --api-key ... in the line 44 table is fine once line 70 is corrected.

That is the only blocker found — everything else runs as documented. Happy to re-review once that line is fixed.


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 JSON transcript export

- Pass explicit argument placeholder `omi_dev_...` to `omi auth login --api-key`
- Add JSON transcript export example with output redirection

Failure-Class: none
@CreamPle

Copy link
Copy Markdown
Contributor Author

Thanks @Git-on-my-level! In commit 13a27c1, line 70 has been updated to include the explicit argument placeholder (omi auth login --api-key omi_dev_...). All command forms across sdks/python-cli/examples/quickstart.uk.md now run as documented.

@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 Ukrainian quickstart; the one command-accuracy issue found by review (bare --api-key form) is fixed at current head (13a27c1) — verified in diff. Rest of guide checks out against CLI source.

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:38

Resolved: the guide's auth-login line now passes an explicit API-key placeholder (quickstart.uk.md L70, commit 13a27c1), verified against the value-taking --api-key option in omi_cli/commands/auth.py. The one command-accuracy blocker from this review no longer applies at the current head.

@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 updated head — thanks for the quick fix and the clean conflict resolution.

  • examples/quickstart.uk.md L70 now passes an explicit placeholder (omi auth login --api-key omi_dev_...), matching the value-taking --api-key option in omi_cli/commands/auth.py. That was the only blocker from the earlier review — the form now runs as documented.
  • The new transcript-export example (L121, omi --json conversation get <CONVERSATION_ID> --include-transcript > transkriptsiya.json) also checks out: --include-transcript exists on conversation get (omi_cli/commands/conversation.py) and --json is a root-level option, so the global placement shown is correct.
  • The exit-code table (L174–181) matches the stable contract in omi_cli/errors.py, including the nuance that Click parser errors exit 2 while app-level validation exits 1.
  • The merge from main kept the guide byte-identical to the reviewed revision and resolved the link conflicts cleanly: README.md L67 and examples/README.md L10 both list all three localized guides with working relative links.

One non-blocking note for maintainers: the root README.md exit-code section (L278) still groups "bad flags, missing args" under code 1 — this guide actually describes the real behavior more precisely. That text predates this PR, so it doesn't block; worth a small README-side follow-up.

With the accuracy concern resolved I've removed docs-accuracy. The guide is accurate, idiomatic, and consistent with the CLI source — thanks for the contribution. Leaving formal sign-off with the maintainer review already on this PR.

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

@Git-on-my-level

Copy link
Copy Markdown
Member

This looks like a class of change we currently aren't taking, based on maintainer pattern rulings. That's not a judgment on the work itself — if you think this one is different, comment and it goes straight to a maintainer. Thanks 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] Ukrainian quickstart for omi-cli ($25 proposed)

3 participants