Skip to content

feat(cli): wire up ogx-client CLI entrypoint#341

Merged
franciscojavierarceo merged 3 commits intoogx-ai:mainfrom
cdoern:feat/ogx-client-cli
May 1, 2026
Merged

feat(cli): wire up ogx-client CLI entrypoint#341
franciscojavierarceo merged 3 commits intoogx-ai:mainfrom
cdoern:feat/ogx-client-cli

Conversation

@cdoern
Copy link
Copy Markdown
Collaborator

@cdoern cdoern commented Apr 30, 2026

Summary

  • Register ogx-client as a console script in pyproject.toml
  • Rename lib/cli/llama_stack_client.pyogx_client.py; rename group, prog_name, and help text
  • Construct OgxClient with api_key/default_headers (the Stainless-generated client no longer accepts provider_data); pack provider keys into the X-OGX-Provider-Data header
  • Fix stale from llama_stack_client... import in configure.py that crashed every CLI invocation
  • Move client config dir from ~/.llama/client to ~/.ogx/client; rename LLAMA_STACK_CLIENT_CONFIG_DIROGX_CLIENT_CONFIG_DIR
  • Replace remaining Llama Stack / llama-stack-client / llama models strings in CLI command help and messages with OGX / ogx-client
  • Update stray AsyncLlamaStackClient reference in lib/agents/agent.py docstring

Stainless covers the SDK types and resources but doesn't generate the CLI, so this stitches the renamed CLI back together so ogx-client actually works.

Test plan

  • `pip install -e .` succeeds
  • `ogx-client --help` lists subcommands and shows `OGX` branding
  • `ogx-client --version` returns the package version
  • `ogx-client configure --help`, `models --help`, `inspect --help` load without import errors
  • End-to-end smoke against a running OGX server

cdoern added 2 commits April 30, 2026 19:56
- Register ogx-client console script in pyproject.toml
- Rename lib/cli/llama_stack_client.py -> ogx_client.py; rename group, prog_name, and help text
- Construct OgxClient with api_key/default_headers (Stainless client doesn't take provider_data); pack provider keys into X-OGX-Provider-Data header
- Fix stale 'from llama_stack_client...' import in configure.py
- Move client config dir from ~/.llama/client to ~/.ogx/client; rename CONFIG_DIR constant
- Replace remaining 'Llama Stack' / 'llama-stack-client' / 'llama models' strings in CLI command help and messages with OGX / ogx-client
- Update AsyncLlamaStackClient docstring reference in lib/agents/agent.py

Signed-off-by: Charlie Doern <cdoern@redhat.com>
Signed-off-by: Charlie Doern <cdoern@redhat.com>
@cdoern cdoern force-pushed the feat/ogx-client-cli branch from 63f9659 to 3cdf3b9 Compare April 30, 2026 23:57
Resolve merge with main (license header removal in 7a863d3).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@franciscojavierarceo franciscojavierarceo merged commit d67b7f3 into ogx-ai:main May 1, 2026
53 checks passed
@stainless-app stainless-app Bot mentioned this pull request May 1, 2026
cdoern pushed a commit that referenced this pull request May 2, 2026
Automated Release PR
---


## 0.8.0-alpha.1 (2026-05-01)

Full Changelog:
[v0.7.2-alpha.4...v0.8.0-alpha.1](v0.7.2-alpha.4...v0.8.0-alpha.1)

### Features

* **cli:** wire up ogx-client CLI entrypoint
([#341](#341))
([d67b7f3](d67b7f3))


### Bug Fixes

* restore deps, ignores, and lazy lib init after rename
([#339](#339))
([b36f998](b36f998))


### Chores

* drop Meta licensing (hook + headers)
([#342](#342))
([7a863d3](7a863d3))
* **internal:** reformat pyproject.toml
([2e4bf09](2e4bf09))

---
This pull request is managed by Stainless's [GitHub
App](https://github.com/apps/stainless-app).

The [semver version
number](https://semver.org/#semantic-versioning-specification-semver) is
based on included [commit
messages](https://www.conventionalcommits.org/en/v1.0.0/).
Alternatively, you can manually set the version number in the title of
this pull request.

For a better experience, it is recommended to use either rebase-merge or
squash-merge when merging this pull request.

🔗 Stainless [website](https://www.stainlessapi.com)
📚 Read the [docs](https://app.stainlessapi.com/docs)
🙋 [Reach out](mailto:support@stainlessapi.com) for help or questions

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants