Skip to content

docs(python-cli): add Yoruba quickstart guide and discovery links (#13903) - #13904

Closed
Abhist17 wants to merge 1 commit into
BasedHardware:mainfrom
Abhist17:docs/cli-quickstart-yo
Closed

Abhist17 wants to merge 1 commit into
BasedHardware:mainfrom
Abhist17:docs/cli-quickstart-yo

Conversation

@Abhist17

@Abhist17 Abhist17 commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #13903

What changed and why

Adds an idiomatic Yoruba (yo) quickstart guide for omi-cli (sdks/python-cli/examples/quickstart.yo.md) and updates discovery links in sdks/python-cli/README.md and sdks/python-cli/examples/README.md. Same structure as the merged es/ja/ru/tr/bg guides; commands, flags and program messages stay in English, only prose is translated.

Content covered:

  • Disambiguation: omi-cli on PyPI vs omi command on $PATH.
  • Isolated installation via pipx (recommended) and virtual environment pip.
  • Authentication: interactive omi auth login, browser OAuth (Google default, --provider apple), developer API key with omi_dev_* prefix, OMI_API_KEY documented as applying only when the active profile has no stored key, offline auth status vs live auth whoami, auth refresh qualified as OAuth-only (API-key profiles get "Nothing to refresh", exit 1), and auth logout / unset OMI_API_KEY.
  • Core command coverage with exact CLI options: memories, conversations, action items, goals (including goal progress <id> <value>).
  • Global --json placement rule, --limit/--offset pagination, clean file redirection.
  • Exit-code table (0–5) mirroring omi_cli/errors.py; row 1 scoped to omi-cli's own validation errors and Click parse errors (unknown flag, missing argument) attributed to exit 2.
  • Bash/Zsh and PowerShell automation examples with $? / $LASTEXITCODE checks.
  • Local Desktop API (omi local status, search-screen, port 47778, OMI_LOCAL_API_URL / OMI_LOCAL_TOKEN, omi local configure).
  • Profiles (--profile > OMI_PROFILE > default) and ~/.omi/config.toml.
  • Security guidelines: never commit keys, chmod 700 ~/.omi, session cleanup.

Product invariants affected

none

How it was verified

  • Every omi … line in the guide (34 commands) was checked mechanically against the CLI installed from this checkout (pip install -e sdks/python-cli): each subcommand path must resolve via omi <path> --help and every flag on the line must appear in that help text. 0 problems. The same checker passes the merged guides and fails on an injected unknown flag / unknown command.
  • Exit-code claims probed on the installed CLI: omi --nope → exit 2 (Click usage error); omi_cli/errors.py constants 0–5 match the table; omi auth refresh on an API-key profile raises UsageError("Nothing to refresh") → exit 1 (omi_cli/commands/auth.py); OMI_API_KEY is applied only when profile.api_key is unset (omi_cli/main.py, get_profile).
  • git diff --check clean; docs-only, no runtime change.
  • Could not exercise a live Omi account; the guide's read-only examples mirror the English README.

Tests

No test change: documentation-only addition with no code path to cover.

Failure class (fixes)

Failure-Class: none

Bounty Payout Destination (PayPal): [email protected]

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.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

You’re at about 95% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].

Re-trigger cubic

@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @Abhist17 — solid first contribution. I verified the guide's technical claims against the CLI source; everything I checked holds up. File by file:

  • sdks/python-cli/examples/quickstart.yo.md (+301, new): follows the structure of the recently merged Mongolian/Spanish guides — 9 parallel sections, commands/flags/program messages kept in English, prose in Yoruba. Spot-checks against code all pass:
    • The exit-code table mirrors omi_cli/errors.py exactly (0 success, 1 usage, 2 auth, 3 server, 4 rate-limit, 5 not-found), including the two easy-to-get-wrong nuances: Click's own parse errors (unknown flag / missing argument) exit 2, and auth refresh on an API-key profile raises UsageError → exit 1 (omi_cli/commands/auth.py, "Nothing to refresh").
    • The OMI_API_KEY precedence claim (applies only when the active profile has no stored key) matches omi_cli/main.py, which fills profile.api_key from the env var only when the profile lacks one.
    • goal progress <id> <value> maps to the real command (omi_cli/commands/goal.py, PATCH /v1/dev/user/goals/{id}/progress), and local status / local search-screen / local configure with OMI_LOCAL_API_URL / OMI_LOCAL_TOKEN match omi_cli/commands/local.py and the SDK README's port-47778 convention.
    • The api.staging.omi.me example follows the README/tests convention for --api-base.
  • sdks/python-cli/README.md (+1/−1): discovery-link line extended in the same style as the existing locales; link target exists.
  • sdks/python-cli/examples/README.md (+1): adds the yo bullet; link target exists.

Note for maintainers: this guide is partly written for AI agents (exit-code contract, --json placement rule, agent credential guidance). I verified those sections are accurate against omi_cli/errors.py and omi_cli/main.py, so the agent-facing guidance is safe as written.

Checks are green on the relevant lanes (Python 3.10/3.12, Hygiene, backend gates; other lanes skipped as expected for a docs-only change). Leaving merge sign-off to a human maintainer — the linked bounty proposal #13903 is still open, so the bounty ruling can happen at merge time.


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 i18n Internationalization / localization changes positive-signal Automation verified a genuine fix/quality contribution labels Sep 14, 2026

@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.

Thanks — approving, not merging. Same shared template as sibling language guides in this batch; several of those were confirmed to overgeneralize --offset pagination to omi goal list (which doesn't support it, only --limit/--include-inactive) — please double-check this guide for the same claim and scope it if present.

…sedHardware#13903)

Adds sdks/python-cli/examples/quickstart.yo.md, an idiomatic Yoruba
quickstart following the merged es/ja/ru/tr/bg guides, and links it from
sdks/python-cli/README.md and examples/README.md. Commands, flags and
program messages stay in English; only prose is translated.

Verification: all 34 `omi` command lines checked against the CLI installed
from this checkout (subcommand resolves, every flag present in --help);
exit codes 0-5 match omi_cli/errors.py, Click parse errors documented as
exit 2 (`omi --nope` -> 2), `auth refresh` qualified as OAuth-only.
Docs-only; no runtime change.
@Abhist17
Abhist17 force-pushed the docs/cli-quickstart-yo branch from fbb4fae to c4680a6 Compare September 15, 2026 15:11
@Abhist17

Copy link
Copy Markdown
Contributor Author

This one's been approved with a clean CI run for a while now — let me know if it's still waiting on something from my end.

@Abhist17

Copy link
Copy Markdown
Contributor Author

Closing this — a Yoruba quickstart guide (sdks/python-cli/examples/quickstart.yo.md) already landed on main from another contributor while this PR was pending. No need to carry a duplicate open. Thanks for the review time either way.

@Abhist17 Abhist17 closed this Sep 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hey @Abhist17 👋

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

3 participants