Skip to main content

Sovereign external API proxy with TIBET provenance — egress control, intent verification, host allowlist

Project description

tibet-gateway

Alpha -- API may change between versions.

Sovereign external API proxy with TIBET provenance. Routes all AI agent egress traffic through a single gateway with host allowlist, intent verification (SNAFT), and provenance sealing.

Install

pip install tibet-gateway

Quick start

1. Configure allowed hosts (safe default: block all)

export TIBET_GATEWAY_ALLOWED_HOSTS=api.openai.com,api.anthropic.com

2. Start the gateway

tibet-gateway serve --port 8080

3. Proxy a call

curl -X POST http://localhost:8080/proxy \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "my-bot.aint",
    "intent": "summarize_text",
    "target_url": "https://api.openai.com/v1/chat/completions",
    "method": "POST",
    "payload": {"model": "gpt-4", "messages": [{"role": "user", "content": "Hello"}]}
  }'

The response includes the original API response plus a TIBET seal with full provenance.

4. Check stats

tibet-gateway stats

What happens on each call

  1. Host check -- target domain must be in TIBET_GATEWAY_ALLOWED_HOSTS
  2. TIBET envelope -- mint provenance token (actor, intent, timestamp)
  3. SNAFT check -- verify payload matches declared intent
  4. Identity headers -- attach AINS identity and TBZ signature
  5. Proxy -- forward to external API
  6. Seal -- wrap response with TIBET seal and log stats

Configuration

Environment variable Description Default
TIBET_GATEWAY_ALLOWED_HOSTS Comma-separated list of allowed domains empty (block all)

Part of the TIBET ecosystem


Authors: Jasper van de Meent, Gemini & Root AI (Humotica AI fAmIly) 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

tibet_gateway-0.2.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

tibet_gateway-0.2.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file tibet_gateway-0.2.0.tar.gz.

File metadata

  • Download URL: tibet_gateway-0.2.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tibet_gateway-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f267a08b44368a2b1c53db3cd0bfa1d168a400af8486a583a576cb0f1982543d
MD5 bc42d890d2f55f4fe4a1ea5ef01a88a3
BLAKE2b-256 2e72fc55e10029270ff2af4d828ca1cc0ee3935435aede2b157f8057e1b8b2b9

See more details on using hashes here.

File details

Details for the file tibet_gateway-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tibet_gateway-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tibet_gateway-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f134a05be4b3bfe3b0fa922b46438b181dd5dd54acf6f0836453654249262b9
MD5 4fba59758ea7ed2a8bdca4cd7f29693b
BLAKE2b-256 229e1ce88c876b68e6ff723267fa1a8d7eebad4d73855a10d7e0959cab1613fb

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