Skip to main content

Thin helper that routes your OpenAI/Anthropic/Gemini SDK calls through an AI Command Center gateway (one line: aicc.init(project=...)).

Project description

aicc-sdk (Python)

Thin helper for AI Command Center. One line routes every OpenAI / Anthropic / Gemini SDK call in your process through the gateway, so usage and cost land on the consolidated dashboard.

import aicc
aicc.init(project="invoice-bot")   # BEFORE creating clients

from openai import OpenAI
client = OpenAI()                   # unchanged code, now fully tracked

If the gateway has login enabled, pass the project's gateway key (from the dashboard → settings, or $AICC_KEY):

aicc.init(project="invoice-bot", key="aicc_…")   # or set AICC_KEY in the env

The SDK only sets standard environment variables (OPENAI_BASE_URL, ANTHROPIC_BASE_URL, GOOGLE_GEMINI_BASE_URL) - you can also set those by hand and skip this package entirely. Your API keys never change hands.

Extras:

aicc.url("mistral")                       # gateway base URL for any provider
aicc.track(model="gpt-4o-mini",           # report usage the gateway can't see
           tokens_in=1200, tokens_out=300)

Install (local, from this repo): pip install -e packages/sdk-python

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

aicc_sdk-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

aicc_sdk-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aicc_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ca9d89f4a730cf52a299e7bcf033da1a101f7f23efcf2bdd24ec9af84c6b2438
MD5 69bc42f60567584d3ebbb5806d9f686e
BLAKE2b-256 46d6b86a5a07e411ced23909b346549e91f6554bc9f666594088e916dc19776b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aicc_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e513440e8759f4a260cd88a07491e8a9482b570f0af1f9325be15483e3a3bc86
MD5 d3535a283a0bd6b6b5264e05fc0ccb76
BLAKE2b-256 87da6910b30b79fa821b766271a83e1e4322ba9c979035b0579b13e40109ab59

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