Skip to main content

Free multi-provider AI SDK with terminal TUI, OpenAI-compatible API, and 27+ provider routing

Project description

AI Synapse

PyPI Python License: MIT

Free multi-provider AI SDK with a terminal chat UI, drop-in OpenAI client, and optional local server. Routes across 27+ providers with failover, model caching, and intent-aware routing.

pip install ai-synapse[tui]    # recommended — SDK + terminal chat
python -m ai_engine tui
pip install ai-synapse         # SDK only
pip install ai-synapse[all]      # SDK + TUI + server extras

Terminal chat

Main chat

Sidebar history, model/provider routing, slash commands, @ file attach, and collapsible sidebar. Full walkthrough, shortcuts, and all screenshots: docs/TUI.md.

Vision (image attach → describe)

Image reply

Attach an image above the composer, ask a question, and get a vision-capable reply. Sent messages keep a path reference only — the pixel preview stays in the attachment strip until you send.


Python SDK

from ai_engine import OpenAI

client = OpenAI()
response = client.chat.completions.create(
    model="default",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
ai-engine chat "Explain quantum tunneling"
ai-engine providers
ai-engine version

Local server (optional)

cp .env.example .env
pip install ai-synapse[server]
python -m ai_engine serve

OpenAI-compatible API at http://localhost:8000/v1/ · Swagger at /docs.


Documentation

Doc Contents
TUI guide Screenshots, shortcuts, attachments, defaults
API reference HTTP endpoints
User guide Web dashboard & chat UI
Provider keys Free-tier signup
Deployment Docker, production

Development

git clone https://github.com/mihir0209/AI_engine.git
cd AI_engine
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev,all]"
pytest tests/

License

MIT — see LICENSE.

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

ai_synapse-1.0.1.tar.gz (247.2 kB view details)

Uploaded Source

Built Distribution

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

ai_synapse-1.0.1-py3-none-any.whl (238.2 kB view details)

Uploaded Python 3

File details

Details for the file ai_synapse-1.0.1.tar.gz.

File metadata

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

File hashes

Hashes for ai_synapse-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2962c5cff2856fd79fc845e8a2c228b1bdac0b0981c8c29487dbb3e14c46baea
MD5 1e13d17adc2ec9616f0b7aab25f0a499
BLAKE2b-256 02d730ecc00d44be900363a5186bd0674771da40725a711e60c2472ac6cd3dc6

See more details on using hashes here.

File details

Details for the file ai_synapse-1.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ai_synapse-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 84f4247e0c90ab2ec91c2478c09861b8d30670c9f3b94f24281c65f683d733b5
MD5 31eb7f223185b0ee2fe026121e4f382e
BLAKE2b-256 e5c149cc3e1784b1cb6b4b5a3d4e613abae42224e29e07e7cebbb40e97fa45be

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