Skip to main content

Auth0 for bots, not humans. Authentication and rate limiting for AI agents.

Project description

Clavis

Auth0 for AI Agents — Authentication, token management, and rate limiting for AI agents.

Installation

pip install clavis

Quick Start

from clavis import ClavisClient

# Initialize the client
client = ClavisClient(api_key="your-clavis-api-key")

# Get a valid token for any service
token = await client.get_token("my-openai-service")

# Or proxy requests with automatic auth injection
response = await client.proxy(
    "my-openai-service",
    "POST",
    "/v1/chat/completions",
    body={"model": "gpt-4", "messages": messages}
)

Features

  • 🔐 Encrypted credentials - All API keys encrypted at rest
  • 🔄 Automatic token refresh - Tokens refreshed proactively before expiry
  • 🚦 Rate limiting - Cross-agent rate limit tracking with Redis
  • 📋 Audit logging - Complete history of all auth events
  • 🔌 Multi-service connectors - OpenAI, Kalshi, Coinbase, and more

Documentation

Visit clavisagent.com/docs for full documentation.

License

MIT

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

clavis-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

clavis-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file clavis-0.1.0.tar.gz.

File metadata

  • Download URL: clavis-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for clavis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b00d9354906d4eabf6b7161e3a1ae25244bcafce7484d7260592dc21a96b49fd
MD5 6b55b22a63974c9c87c98ff57f767ef7
BLAKE2b-256 b6b770c6a1b02b32051ad92eacdc8998c95462ece8666e1834f1706960f8bea8

See more details on using hashes here.

File details

Details for the file clavis-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: clavis-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for clavis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 598ab1a6abdd7f54643295d50809f328fe631c5dcfe7e057b22fa90b1345124b
MD5 1452d42381469315487e9f4de801594a
BLAKE2b-256 9aa9ff0c3be18cd52910b79ebccea09b4c3219e33a117d8cc697ccbe112b2520

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