Skip to main content

Unofficial async Python client for the complete Open WebUI API.

Project description

Unofficial Open WebUI Client

📚 Full Documentation

A robust, async Python client for the complete Open WebUI API.

This library mirrors the backend structure of Open WebUI, providing a fully typed, auto-completable interface for every endpoint.

Note: This is the initial release (v1.0.0). While it covers the complete API, there may be edge cases or recent Open WebUI changes we haven't caught yet. Please report any issues you encounter!

Installation

pip install owui-client

Quick Start

import asyncio
from owui_client import OpenWebUI

async def main():
    # Connect to your Open WebUI instance
    client = OpenWebUI(
        api_url="http://localhost:8080/api", 
        api_key="sk-..."
    )

    # Example: Get current user info
    user = await client.auths.get_session_user()
    print(f"Hello, {user.name}!")

    # Example: List all models
    models = await client.models.get_models()
    for model in models.data:
        print(model.id)

if __name__ == "__main__":
    asyncio.run(main())

Locating Endpoints

The client structure matches the Open WebUI backend router structure exactly. If you know the API endpoint or backend path, you know the client function.

API Group Client Attribute Description
Auth & Users client.auths Sign in/up, API keys, session management
client.users User management, permissions, settings
client.groups Group management
Content client.chats Chat history, messages, archiving
client.prompts Prompt management
client.files File uploads and management
client.knowledge Knowledge base operations
Inference client.openai OpenAI-compatible chat completions & config
client.ollama Ollama configuration & endpoints
client.images Image generation endpoints
client.audio TTS and STT endpoints
System client.configs Global system configurations
client.models Model management (delete, update, import)
client.tools Tool management
client.functions Function management

Tip: Use your IDE's autocomplete on the client object to explore all available resources.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

owui_client-1.1.1.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

owui_client-1.1.1-py3-none-any.whl (81.2 kB view details)

Uploaded Python 3

File details

Details for the file owui_client-1.1.1.tar.gz.

File metadata

  • Download URL: owui_client-1.1.1.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for owui_client-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7ca4e9ab75b111456ad49eef415f8f33349866cd130c4d4a1749bd2f0eb13535
MD5 bb449a7c751be990bf52941855bae527
BLAKE2b-256 7a8c2f9275c95a9797ad55786bf7655d20b597fa887ec07d6a2884c9e5fdef29

See more details on using hashes here.

File details

Details for the file owui_client-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: owui_client-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 81.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for owui_client-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b191ac7c86a79eeec5f2e51b36563c713d39f5f09da5564752c583b7951df91
MD5 8ae0682c8bbb550124654a4cfd8e053f
BLAKE2b-256 118e0b394a000b089ab85b0debaa9948fb0cf570913f5ca443f912b87fd9b67d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page