Command Line Interface #95

Closed
opened 2026-02-15 16:27:58 -05:00 by yindo · 2 comments
Owner

Originally created by @p-vdp on GitHub (Jun 7, 2024).

I'm running ollama on a remote server and would like to interact with it from another machine via CLI and the REST API.

This should be pretty straightforward to do with a custom Client object in __main__.py. Usage from a terminal would be something like this:

python -m ollama --endpoint http://remotehost:11434 --model llama3 --message "Why is the sky blue?"

I'm interested in implementing this. Do folks have a preference for CLI parameter handling? I prefer absl.

Originally created by @p-vdp on GitHub (Jun 7, 2024). I'm running ollama on a remote server and would like to interact with it from another machine via CLI and the REST API. This should be pretty straightforward to do with a custom Client object in `__main__.py`. Usage from a terminal would be something like this: `python -m ollama --endpoint http://remotehost:11434 --model llama3 --message "Why is the sky blue?"` I'm interested in implementing this. Do folks have a preference for CLI parameter handling? I prefer [absl](https://abseil.io/docs/python/quickstart).
yindo closed this issue 2026-02-15 16:27:58 -05:00
Author
Owner

@synacktraa commented on GitHub (Jul 26, 2024):

I prefer Cyclopts

@synacktraa commented on GitHub (Jul 26, 2024): I prefer [Cyclopts](https://www.reddit.com/r/Python/comments/18hn2t1/cyclopts_a_cli_library_that_fixes_13_annoying/)
Author
Owner

@mxyng commented on GitHub (Aug 27, 2024):

As mentioned in #185, a CLI is be out of scope of this repo. You are however free to implement your a CLI in your own repo

@mxyng commented on GitHub (Aug 27, 2024): As mentioned in #185, a CLI is be out of scope of this repo. You are however free to implement your a CLI in your own repo
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#95