DevsLLM
One Python interface for text chat across providers.
DevsLLM combines an OpenAI-shaped chat interface, provider routing, failover, streaming, a command-line tool, and a local HTTP server.
- 💬 Make a simple request with
Client().ask()or usechat.completions.create(). - 🔀 Try another eligible provider when an attempt fails or returns an empty response.
- ⚡ Stream responses and inspect the failure trail when no provider succeeds.
- 🎯 Choose a provider or model, or let the client plan a candidate chain.
- 🖥️ Use the CLI or run a local server with a subset of the OpenAI chat API.
Install
Requires Python 3.10 or newer:
python -m pip install devsllm
Your first request
from devsllm import Client, NoProviderAvailable
client = Client(attempts=3, timeout=25)
try:
print(client.ask("Explain an API in one sentence."))
except NoProviderAvailable as error:
print("No provider succeeded:", error)
for attempt in error.trail:
print(" -", attempt)
OpenAI-shaped chat
from devsllm import Client
client = Client()
response = client.chat.completions.create(
model="auto",
messages=[{"role": "user", "content": "What is an API?"}],
)
print(response.choices[0].message.content)
Command line
devsllm version
devsllm providers
devsllm models
devsllm ask "Hello"
Local HTTP server
devsllm serve --port 8099
The server listens on 127.0.0.1 by default. It has no built-in authentication or TLS and should not be exposed to untrusted networks without suitable protection.
Important notes
- Provider and model listings describe configured candidates, not live health checks. Availability and feature support vary.
- Requests go to third-party services; automatic failover can send the same prompt to multiple providers. Review their privacy policies before sending sensitive data.
- A timeout limits the caller's wait but cannot kill provider code that is still running. After streaming starts, mid-stream failover is not available.
- Some providers need credentials, optional dependencies, or browser setup. Use your own credentials and do not commit them.
For the full guides, examples, provider notes, and source code, visit the DevsLLM repository. The documentation there reflects the version currently published to that repository.
License
Apache-2.0. The distribution includes the license and applicable notices.
Metadata
Release files for devsllm 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 |
|---|---|---|---|---|
| devsllm-1.0.0.tar.gz | 280.8 kB | Without provenance | Details for devsllm-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| devsllm-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for devsllm-1.0.0-py3-none-any.whl |
Total release size: 597.3 kB
Release files / devsllm-1.0.0.tar.gz
| Download URL | devsllm-1.0.0.tar.gz |
|---|---|
| Size | 280.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fa2ae0a2f9e83ba1b22dfb2cfc3ba0db2d821389076c232465cd6ca17adc62c
|
|
BLAKE2b-256 checksum How to use checksums |
bb896efbf69bba121c7d1ad1a326e4821364bde05ec84dcf9a91992fc980e242
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.6
|
Release files / devsllm-1.0.0-py3-none-any.whl
| Download URL | devsllm-1.0.0-py3-none-any.whl |
|---|---|
| Size | 316.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d328b98e018a33d2f7febb4cf1a84424b0994653ab3d4eecc6b64efbffe1e7ea
|
|
BLAKE2b-256 checksum How to use checksums |
c8eee073d032d2edcb36bc8f08eb8395d2162a48af9e5016159ce2bbf36fe909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.6
|
Security for devsllm 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.