Status: [UNTESTED] Endpoints found: http://localhost:8000/v1/` http://localhost:8000/v1/uni` Source: https://github.com/mihir0209/AI_engine # AI Synapse [![PyPI](https://img.shields.io/pypi/v/ai-synapse)](https://pypi.org/project/ai-synapse/) [![Python](https://img.shields.io/pypi/pyversions/ai-synapse)](https://pypi.org/project/ai-synapse/) [![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE) [![Tests](https://github.com/mihir0209/AI_engine/actions/workflows/test.yml/badge.svg)](https://github.com/mihir0209/AI_engine/actions/workflows/test.yml) **Free multi-provider AI SDK** with drop-in OpenAI compatibility, intelligent routing across 35+ provider configurations, automatic key rotation, and an optional local OpenAI-compatible server. Use it as a Python library, run your own API gateway, or add the terminal chat UI. ```bash pip install ai-synapse # SDK — routing, failover, OpenAI client pip install ai-synapse[server] # SDK + local OpenAI-compatible server pip install ai-synapse[all] # SDK + server + terminal chat (TUI) ``` **Latest published release:** v1.0.5 — keyless provider expansion and reliability hardening. See [CHANGELOG](CHANGELOG.md). --- ## Python SDK Drop-in `OpenAI` client that routes across free-tier and self-hosted providers with failover, **per-provider API key rotation**, health-aware routing, and model caching. ```python from ai_engine import OpenAI client = OpenAI() response = client.chat.completions.create( model="gpt-4", messages=[{"role": "user", "content": "Hello!"}], ) print(response.choices[0].message.content) ``` **CLI** (entry point `ai-engine` or `python -m ai_engine`): ```bash ai-engine chat "Explain quantum tunneling" ai-engine serve --port 8000 # local OpenAI-compatible server ai-engine providers # list configured providers ai-engine status # quick provider counts ai-engine version python -m ai_engine tui # optional terminal UI ``` More examples: [`examples/sdk/`](examples/sdk/) ## Free Providers The default configuration includes hosted free and