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.1.0.tar.gz (7.1 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.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tibet_gateway-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 89e9008817f6d70fe558a54475166845442d746712a8ce29b6ae4295c88d5179
MD5 6b1eed5d90930bfa391e1b89fbe33f76
BLAKE2b-256 84237e82c1b4a7f84ff912c49ab5ca084ebe3352d8ca90b709b09dd964af9bc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tibet_gateway-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0494d28a70bcb2cb65382ff972a317d94e83e489462d0eba26ac3db3996c9d1c
MD5 5e82ce484d1139357470712bb9441c64
BLAKE2b-256 068525de915d9ef7c1fe523efb69541adb19126c60c06f64ac5f0057fafdb976

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