Skip to content

docs(python-cli): add Marathi quickstart guide and discovery links (#13788) - #13789

Closed
Aj2280 wants to merge 1 commit into
BasedHardware:mainfrom
Aj2280:docs/quickstart-mr
Closed

Aj2280 wants to merge 1 commit into
BasedHardware:mainfrom
Aj2280:docs/quickstart-mr

Conversation

@Aj2280

@Aj2280 Aj2280 commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a comprehensive Marathi (मराठी) quickstart guide for omi-cli and registers discovery links in sdks/python-cli/README.md and sdks/python-cli/examples/README.md, addressing #13788.

Changes

  • sdks/python-cli/examples/quickstart.mr.md: New beginner-friendly guide in Marathi covering:
    • Distinction between PyPI package (omi-cli) and executable command (omi).
    • Installation via pipx or standard virtual environment.
    • Interactive authentication, direct browser login, and developer API keys (omi_dev_* / OMI_API_KEY).
    • Credential inspection (auth status offline check vs auth whoami live server roundtrip).
    • Core resource listing and inspection (memory, conversation, action-item, goal).
    • Global --json placement rule (omi --json memory list), pagination with --offset, and file redirect caveats.
    • Exit code reference table (0–5) aligning with omi_cli/errors.py.
    • Shell environment examples for Bash/Zsh and PowerShell.
    • Local Desktop API integration (port 47778, omi local configure, omi local status).
    • Profile management (--profile) for multi-account or staging environments.
    • Local logout vs server-side key revocation.
  • sdks/python-cli/README.md: Added discovery link to Marathi quickstart.
  • sdks/python-cli/examples/README.md: Added discovery link to quickstart.mr.md.

Fixes #13788

Product Invariants Affected

none

Verification

  • Exercised CLI help and version paths referenced in the guide:
    • omi --version reports 0.3.0
    • omi --help exits 0
    • omi auth login|status|whoami|logout --help exit 0
    • omi memory|conversation|action-item|goal list --help exit 0
    • omi --json memory list --help exits 0
  • Validated markdown formatting and relative links across modified files.
  • Ran repo preflight manifest checks.

Bounty

Proposed US$25 documentation bounty per the contribution guide — see #13788.

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.

3 issues found across 3 files

Confidence score: 3/5

  • In sdks/python-cli/examples/quickstart.mr.md, describing omi auth logout as fully logging users out could leave API keys active through the dashboard or OMI_API_KEY, creating a credential-exposure risk — document those separate cleanup steps.
  • The exit-code table in sdks/python-cli/examples/quickstart.mr.md misclassifies unknown flags and missing arguments as code 1, while Click returns code 2; distinguish parser errors or normalize them in main.py to prevent incorrect scripting and troubleshooting.
  • The API-key profile guidance in sdks/python-cli/examples/quickstart.mr.md implies omi auth status shows a validity period even though that applies only to OAuth profiles — clarify the limitation to avoid misleading status expectations.
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.mr.md">

<violation number="1" location="sdks/python-cli/examples/quickstart.mr.md:73">
P2: For API-key profiles, `omi auth status` does not display a validity period. Say that expiry is shown only for OAuth profiles so users do not expect an API-key expiration field.</violation>

<violation number="2" location="sdks/python-cli/examples/quickstart.mr.md:81">
P2: `omi auth logout` only clears the local profile; it does not revoke an API key or unset `OMI_API_KEY`. Tell users to revoke keys in the dashboard and remove environment variables separately.</violation>

<violation number="3" location="sdks/python-cli/examples/quickstart.mr.md:178">
P2: Unknown flags and missing arguments exit with Click's code 2, not code 1. Distinguish parser errors from custom validation errors in this exit-code table, or normalize them in `main.py`.</violation>
</file>

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

Re-trigger cubic

```

### प्रमाणीकरण स्थिती तपासणे
* `omi auth status`: स्थानिक क्रेडेंशियल्स, मास्क केलेले टोकन आणि वैधता कालावधी दाखवते (ऑफलाइन कार्य करते).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: For API-key profiles, omi auth status does not display a validity period. Say that expiry is shown only for OAuth profiles so users do not expect an API-key expiration field.

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.mr.md, line 73:

<comment>For API-key profiles, `omi auth status` does not display a validity period. Say that expiry is shown only for OAuth profiles so users do not expect an API-key expiration field.</comment>

<file context>
@@ -0,0 +1,238 @@
+```
+
+### प्रमाणीकरण स्थिती तपासणे
+* `omi auth status`: स्थानिक क्रेडेंशियल्स, मास्क केलेले टोकन आणि वैधता कालावधी दाखवते (ऑफलाइन कार्य करते).
+* `omi auth whoami`: थेट Omi सर्व्हरला विनंती पाठवून क्रेडेंशियल्स सक्रिय असल्याची पडताळणी करते (इंटरनेट आवश्यक).
+
</file context>
Suggested change
* `omi auth status`: स्थानिक क्रेडेंशियल्स, मास्क केलेले टोकन आणि वैधता कालावधी दाखवते (ऑफलाइन कार्य करते).
* `omi auth status`: स्थानिक क्रेडेंशियल्स आणि मास्क केलेले टोकन दाखवते; OAuth प्रोफाईलसाठी ID टोकनची समाप्ती वेळ दाखवते (ऑफलाइन कार्य करते).

Comment on lines +178 to +179
| `1` | Usage Error | चुकीचे फ्लॅग्स किंवा अपूर्ण पॅरामीटर्स |
| `2` | Auth Error | लॉगिन केलेले नाही, अवैध API की किंवा टोकन संपले |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: Unknown flags and missing arguments exit with Click's code 2, not code 1. Distinguish parser errors from custom validation errors in this exit-code table, or normalize them in main.py.

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.mr.md, line 178:

<comment>Unknown flags and missing arguments exit with Click's code 2, not code 1. Distinguish parser errors from custom validation errors in this exit-code table, or normalize them in `main.py`.</comment>

<file context>
@@ -0,0 +1,238 @@
+| कोड | प्रकार | स्पष्टीकरण |
+| :---: | :--- | :--- |
+| `0` | Success | कमांड यशस्वीरीत्या पूर्ण झाली |
+| `1` | Usage Error | चुकीचे फ्लॅग्स किंवा अपूर्ण पॅरामीटर्स |
+| `2` | Auth Error | लॉगिन केलेले नाही, अवैध API की किंवा टोकन संपले |
+| `3` | Server Error | सर्व्हर त्रुटी (5xx), नेटवर्क समस्या किंवा टाईमआऊट |
</file context>
Suggested change
| `1` | Usage Error | चुकीचे फ्लॅग्स किंवा अपूर्ण पॅरामीटर्स |
| `2` | Auth Error | लॉगिन केलेले नाही, अवैध API की किंवा टोकन संपले |
| `1` | Validation Error | कस्टम पडताळणी त्रुटी |
| `2` | Auth / CLI Parse Error | प्रमाणीकरण त्रुटी किंवा चुकीचे फ्लॅग्स/अपूर्ण पॅरामीटर्स |

omi auth whoami
```

क्रेडेंशियल्स हटवण्यासाठी लॉगआउट करा:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: omi auth logout only clears the local profile; it does not revoke an API key or unset OMI_API_KEY. Tell users to revoke keys in the dashboard and remove environment variables separately.

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.mr.md, line 81:

<comment>`omi auth logout` only clears the local profile; it does not revoke an API key or unset `OMI_API_KEY`. Tell users to revoke keys in the dashboard and remove environment variables separately.</comment>

<file context>
@@ -0,0 +1,238 @@
+omi auth whoami
+```
+
+क्रेडेंशियल्स हटवण्यासाठी लॉगआउट करा:
+```bash
+omi auth logout
</file context>

@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @Aj2280 — well-structured translation with clean discovery integration. Appreciated, and useful for Marathi-speaking developers. धन्यवाद!

Per-file notes (all three changed files checked against the CLI source on main):

  • sdks/python-cli/README.md — single-line edit appending the Marathi link to the localized-guides line. Verified the relative target exists in this PR and the format matches the existing series. No issues.
  • sdks/python-cli/examples/README.md — adds the quickstart.mr.md bullet in the same shape as the other locale entries. Clean.
  • sdks/python-cli/examples/quickstart.mr.md — the substance. The guide is faithful to the CLI's real surface: I verified the commands/flags against omi_cli/commands/*.py (memory create --category, conversation get --include-transcript, action-item list --open, --limit/--offset, local configure --url/--token, local search-screen --days/--app, --profile) and the global --json-before-subcommand rule is stated correctly. Three accuracy fixes before merge:
  1. Exit-code table (§५): the 1 | Usage Error row maps invalid flags / missing parameters to 1. In omi_cli/main.py's top-level handler, Click's own parse errors (unknown flag, missing argument) propagate as click.ClickException and exit with Click's built-in 2; exit 1 is only omi's own UsageError (bad values, validation). Suggest splitting the row: "1 — validation/usage errors from omi itself; 2 — command-line parse errors (unknown flag, missing argument)". This confirms the cubic review's flag — verified against main.py.
  2. auth status (§२): "वैधता कालावधी दाखवते" (shows a validity period) holds only for browser/OAuth logins — commands/auth.py emits id_token_expires_at only when auth_method == "oauth"; API-key profiles show no expiry. Please scope that sentence to OAuth profiles.
  3. Logout semantics (§२): omi auth logout only clears the active local profile. It does not revoke the key server-side, and OMI_API_KEY keeps authenticating even with no stored profile (main.py applies the env var on its own). The Bulgarian guide carries a one-line note here (unset OMI_API_KEY + dashboard revocation) — adding the same, plus the short security-practices note the issue proposed (chmod 700 ~/.omi), would make this guide more accurate than the precedents rather than less.

Since this addresses #13788's bounty proposal: leaving the merge call, translation-quality sign-off, and bounty adjudication to a human maintainer; the three fixes above are small and localized.


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 positive-signal Automation verified a genuine fix/quality contribution docs-accuracy Documentation or committed reports need accuracy fixes i18n Internationalization / localization changes 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.

Docs: adds Marathi quickstart guide (new standalone file) + discovery links. Commands/flags verified against sdks/python-cli source — match. Not merging: PR is DIRTY (merge conflict on the shared README.md localized-guides line), leaving approved per policy (never rebase a PR branch).

@Git-on-my-level

Copy link
Copy Markdown
Member

Follow-up on my earlier feedback, after checking omi_cli/main.py and Click 8.1.6 exception behavior directly — one correction and a short status note:

1. Exit-code table (§५) — correcting my earlier note. The Marathi row (1 | चुकीचे फ्लॅग्स किंवा अपूर्ण पॅरामीटर्स) faithfully translates the repo's own canonical contract — sdks/python-cli/README.md ("1 usage error (bad flags, missing args, validation)") and the omi_cli/errors.py docstring say exactly the same. The behavioral edge is that Click's own parse errors (unknown flag, missing argument) carry Click's built-in exit code 2, and main.py's top-level handler deliberately honors exc.exit_code for those; only omi's own UsageError maps to 1. So the imprecision originates in the canonical docs, not in this translation — please don't split the 1/2 rows in the Marathi table alone, as that would make it diverge from the README. If the 1-vs-2 distinction is worth documenting, the right move is a small fix to the README/errors.py contract first, with the locale guides following it.

2. Remaining nits — valid but small and non-blocking:

  • auth status shows a validity period only for OAuth profiles; commands/auth.py includes id_token_expires_at only when auth_method == "oauth". One scoping sentence would fix it.
  • auth logout clears only the local profile — it neither revokes the key server-side nor affects OMI_API_KEY (applied independently in main.py's get_profile()). The Bulgarian guide's unset OMI_API_KEY note would be a welcome parallel here.

Neither blocks merge, especially with the maintainer approval already on this head. The README.md conflict still needs resolving before merge.


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.

Re-evaluated under current policy (backlog drain).

@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 @Aj2280 👋

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

docs-accuracy Documentation or committed reports need accuracy fixes 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] Marathi (मराठी) quickstart for omi-cli ( proposed)

3 participants