Skip to content

docs(python-cli): add Hausa quickstart guide and discovery links (#13901) - #13902

Merged
kodjima33 merged 2 commits into
BasedHardware:mainfrom
Abhist17:docs/cli-quickstart-ha
Sep 16, 2026
Merged

kodjima33 merged 2 commits into
BasedHardware:mainfrom
Abhist17:docs/cli-quickstart-ha

Conversation

@Abhist17

@Abhist17 Abhist17 commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #13901

What changed and why

Adds an idiomatic Hausa (ha) quickstart guide for omi-cli (sdks/python-cli/examples/quickstart.ha.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.

All reported issues were addressed across 3 files

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

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.

Thank you for this — a genuinely solid first contribution. I checked ~30 of the documented commands and behaviors against the CLI source, and the large majority are accurate, including the exit-code table (it mirrors omi_cli/errors.py exactly, with Click parse errors correctly attributed to exit 2), the OMI_API_KEY precedence rule, and the local Desktop API section. Three items are factually wrong though, and since these guides get ingested by AI agents as ground truth for driving omi-cli, they need correcting before merge.

1. sdks/python-cli/examples/quickstart.ha.md — §2, "Sabunta token na OAuth" (auth refresh)

The guide presents omi auth refresh as a working step for browser-login profiles. It isn't: login_with_browser exchanges the Firebase ID token for a developer API key and ends with store_api_key(...) (omi_cli/auth/oauth.py, login_with_browser), which sets auth_method="api_key" and clears all token fields (omi_cli/auth/store.py). auth refresh then raises UsageError("Nothing to refresh") with exit code 1 for any non-oauth profile (omi_cli/commands/auth.py, refresh). No login flow available today produces an OAuth-method profile, so this step fails for every reader. Note your own exit-code table already documents this correctly under row 1 — §2 just contradicts it. Please remove the instruction or reframe it as "only relevant to OAuth profiles; browser login actually stores a long-lived developer key".

2. sdks/python-cli/examples/quickstart.ha.md — §8 (Profiles): fallback is the saved active profile, not default

The section says the precedence ends at the default profile. The actual chain is --profile > OMI_PROFILE > the saved active_profile (omi_cli/config.py, resolve_profile_name), and every login rewrites active_profile (omi_cli/auth/store.py). So after your own example omi --profile personal auth login, a later bare omi memory list runs against personal — the reader would be operating on the wrong account while believing they're on default. The already-merged Thai guide words this correctly (saved active profile, with default only as the initial value) and is a good model to translate from.

3. sdks/python-cli/examples/quickstart.ha.md — §4 (Pagination): --offset is not universal

"Umarnin list suna goyon bayan --limit da --offset" overgeneralizes: goal list accepts only --limit/--include-inactive (omi_cli/commands/goal.py); --offset exists on the memory/conversation/action-item lists. Please scope the sentence to those commands or note the goal-specific limitation.

The two link updates (sdks/python-cli/README.md localized-guides line, sdks/python-cli/examples/README.md index entry) are correct and consistent with the existing entries — no concerns there.

One process note for maintainers: the linked issue #13901 is a self-proposed $25 bounty (PayPal payout) opened by the same contributor with no maintainer response yet, and this PR states "Resolves #13901" — so merging implicitly intersects with bounty acceptance. That acceptance decision, plus sign-off on the corrected wording in this agent-facing guide, needs a human maintainer.


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 needs-maintainer-review Needs a human maintainer to sign off before merge i18n Internationalization / localization changes labels Sep 14, 2026
Abhist17 added a commit to Abhist17/omi that referenced this pull request Sep 15, 2026
- auth refresh: no current login flow (browser included) produces an
  OAuth-method profile, so the command always reports "Nothing to
  refresh" -- it isn't a working step for browser-login profiles.
- Pagination: --offset is not universal; goal list only accepts
  --limit/--include-inactive.
- Profiles: the fallback after OMI_PROFILE is the saved active
  profile, not a hardcoded "default" -- every login rewrites it.

Addresses review feedback on PR BasedHardware#13902 from Git-on-my-level.
@Abhist17

Copy link
Copy Markdown
Contributor Author

Thanks for the detailed review — all three corrected:

  1. auth refresh: reworded to state plainly that no current login flow (browser included) produces an OAuth-method profile, so the command always reports "Nothing to refresh" today — verified against login_with_browser → store_api_key and refresh's auth_method != "oauth" check in omi_cli/auth/oauth.py and omi_cli/commands/auth.py.
  2. Pagination: scoped the --offset claim to memory/conversation/action-item, and noted goal list only takes --limit/--include-inactive — verified against omi_cli/commands/goal.py.
  3. Profiles: fallback now described as the saved active profile (default value default, rewritten by every auth login) rather than a hardcoded default — verified against resolve_profile_name in omi_cli/config.py, matching the already-merged Thai guide's wording.

Pushed as 315a151.

…edHardware#13901)

Adds sdks/python-cli/examples/quickstart.ha.md, an idiomatic Hausa
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.
- auth refresh: no current login flow (browser included) produces an
  OAuth-method profile, so the command always reports "Nothing to
  refresh" -- it isn't a working step for browser-login profiles.
- Pagination: --offset is not universal; goal list only accepts
  --limit/--include-inactive.
- Profiles: the fallback after OMI_PROFILE is the saved active
  profile, not a hardcoded "default" -- every login rewrites it.

Addresses review feedback on PR BasedHardware#13902 from Git-on-my-level.
@Abhist17
Abhist17 force-pushed the docs/cli-quickstart-ha branch from 315a151 to d25b933 Compare September 15, 2026 15:11
@Abhist17

Copy link
Copy Markdown
Contributor Author

Just checking in — the three corrections above went up yesterday. Let me know if there's anything else you'd like adjusted, or if this is good to merge.

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

All 3 previously-flagged inaccuracies (auth refresh wording, profile fallback, --offset scoping on goal list) are fixed in the latest commits — verified against omi_cli/commands/goal.py, auth/oauth.py, config.py. Docs-correctness gate now passes.

@kodjima33
kodjima33 merged commit 44d5081 into BasedHardware:main Sep 16, 2026
29 checks passed
@Abhist17

Copy link
Copy Markdown
Contributor Author

Following up on payment for this one — merged 2026-09-16.

I've emailed [email protected] with the full list of my merged bounty PRs, as the contribution guide asks under Paid Bounties ("claiming payment"). Leaving a note here too so it's on the thread rather than only in a mailbox.

Bounty: $25 — proposal #13901.
cc @kodjima33 @josancamon19

Payout — crypto is easiest for me, USDC/USDT on either chain:

  • EVM (Ethereum / Base / Polygon / Arbitrum): 0x49A441f63f00b1978Aa4DD4ff52C237a4A7FdF82
  • Solana: FQetSNNrMouXQ1W3hzCunkd3V5kyvvBtKxQZ2mWfksxV

Happy to use whatever method is simplest on your side. Thanks!

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

Labels

docs-accuracy Documentation or committed reports need accuracy fixes i18n Internationalization / localization changes needs-maintainer-review Needs a human maintainer to sign off before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants