OmniPrompt
OmniPrompt is a command-line utility for quickly testing and interacting with various large language model (LLM) APIs from different providers. "Omni" reflects the tool's ability to connect to all different AI providers, and "Prompt" is the core action.
Features
- Test prompts against multiple AI providers from a single interface.
- Support for major providers: Google, OpenAI, Anthropic, Groq, and more.
- List available models for each provider.
- Generate images using Google's Imagen model.
- Run a single prompt against all configured providers simultaneously.
- Secure and discoverable API key configuration using environment variables.
Setup
-
Clone the repository:
git clone https://github.com/andkamau/omniprompt.git cd omniprompt
-
Install the package: You can install OmniPrompt in editable mode for development:
pip install -e .
This will install all dependencies and create the
omnipromptcommand. -
Configure API Keys: OmniPrompt reads API keys from environment variables. It looks for a
config.yamlfile in the following locations:~/.config/omniprompt/config.yaml~/.omniprompt.yaml- The current directory (
./config.yaml)
Step 1: Create your config file Copy the provided
config.yamlto one of the locations above.Step 2: Set the Environment Variables Set the environment variables with your actual API keys as defined in your
config.yaml.Example:
export OPENAI_API_KEY="sk-..." export GOOGLE_API_KEY="AIza..."
Usage
Once installed, you can use the omniprompt command from anywhere.
Basic Prompt
omniprompt -P openai -m gpt-4o -p "What are the three laws of thermodynamics?"
List Available Models
omniprompt -l google
Image Generation
omniprompt -P google -i "A futuristic cityscape at sunset, digital art."
Test All Providers
python omniprompt.py -a -p "Write a haiku about a robot learning to paint."
Arguments
| Full Argument | Short Argument | Description |
|---|---|---|
--provider |
-P |
The API provider (e.g., google, openai). |
--model |
-m |
The specific model to use (e.g., gpt-4o). |
--prompt |
-p |
The text prompt to send to the model. |
--list-models |
-l |
List available models for a given provider. |
--generate-image |
-i |
The prompt for image generation. |
--all-providers |
-a |
A flag to send a prompt to all configured providers. |
Metadata
Release files for omniprompt 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omniprompt-1.0.0.tar.gz | 12.3 kB | Without provenance | Details for omniprompt-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omniprompt-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for omniprompt-1.0.0-py3-none-any.whl |
Total release size: 22.4 kB
Release files / omniprompt-1.0.0.tar.gz
| Download URL | omniprompt-1.0.0.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd66ca68e0b58c8e4b0554ac3fad3f7010fc611fd73646e924bb000698fb8658
|
|
BLAKE2b-256 checksum How to use checksums |
48a7a13591de558197f82969f1ad51623786b08f23d6cf663764f1cf19e53cdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / omniprompt-1.0.0-py3-none-any.whl
| Download URL | omniprompt-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21b00a719cc7df0b76a22a7486d4d7c9cab4b037be8485c87c8448e71210360e
|
|
BLAKE2b-256 checksum How to use checksums |
0d46a9f8815d0ff58c8779cf71dc96d3e679fe8d638e394b754423c5a3375369
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for omniprompt 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.