Skip to main content

Skye

Modular GenAI library with optional extras

Skye provides a foundational layer for building AI agents and intelligent applications with a Clean Architecture approach. The base package includes only interfaces and models, while all implementations are available as optional extras.

Python 3.11+ License: MIT

Features

  • 🎯 Provider-agnostic - Unified interface for OpenAI, Anthropic, AWS Bedrock, Azure, and more
  • 🧩 Modular architecture - Install only what you need via optional extras
  • 🔒 Type-safe - Complete type hints, with validated dataclasses
  • ⚡ Async-first - Both sync and async APIs throughout
  • 🔄 Load balancing - Multiple routing strategies with automatic fallbacks
  • 📊 Observability - Built-in telemetry, logging, and tracing
  • 🛡️ Safety filters - Input/output validation and moderation
  • 💾 Memory systems - Episodic and semantic memory support

Install

pip install skyeai            # the base: messages, completion, errors, config, Ports (standard library only)
pip install skyeai[memory]    # add only what you need: tokens, auth, memory, postgres, mcp, ...

Every extra is optional and loaded lazily. All extras and install options: getting started.

Quick start

One call creates the client of a provider, in the style of boto3.client:

import skye
from skye import UserMessage

client = skye.provider("openai", api_key="sk-...")
response = client.complete(messages=[UserMessage(content="Hello!")], model="gpt-4")
print(response.content)

The same line works for every provider ("anthropic", "bedrock", "azure", "google", "cohere"); for embeddings add provider_type="embedding". To balance several models with fallbacks, use the router: router overview.

Examples

Runnable examples are in examples/, one folder per topic:

Folder What it shows
examples/basic quick start, async and streaming, configuration, completion requests
examples/providers OpenAI, Anthropic, Azure, Bedrock, Google, embeddings, multimodal, structured output, function calling, your own adapter
examples/routing the router: strategies, .skye configuration, fallbacks, health and usage
examples/capabilities local functions, remote APIs, function calling, the MCP client
examples/advanced multimodal, structured output, function calling, streaming, prompt engineering, your own provider
examples/prompts templates, few-shot examples, roles, multimodal prompts
examples/serverless a handler that creates its client once, and a router with external state

Every example is run offline against a fake network by tests/examples, so it cannot drift from the library.

Documentation

The documentation is a wiki with one section per component; start from docs/index.md.

Topic Page
Getting started, install, quick start getting started
Architecture and layers architecture
Core interfaces and configuration interfaces, configuration
Providers, embeddings, multimodal, streaming provider guide
Function calling and capabilities function calling
Routing, .skye files, health, fallbacks router overview, routing guide
Lazy loading and serverless deployment deployment
Size and load budgets budgets
Codename glossary glossary
Development: setup, tests, code quality development
Roadmap roadmap

How the project is specified: the requirements, the design and the decisions are in .kiro/steering/ (10-requirements.md, 11-design.md, 12-decisions.md) and the per-component specs in .kiro/specs/.

Contributing

See CONTRIBUTING.md. Fork, create a branch, make your changes with tests, run the code quality checks, and open a pull request.

License

MIT License - see LICENSE file for details.

Support

Acknowledgments

Skye is inspired by:

  • LangChain - For pioneering LLM application frameworks
  • LiteLLM - For provider abstraction patterns
  • Clean Architecture - For architectural principles
  • Amazon Bedrock AgentCore Gateway - For the gateway model (targets, inbound and outbound authorization, policy on every tool call)
  • Cedar - For the policy model (principal, action, resource, context; default deny; forbid overrides permit)

Metadata

Release files for skyeai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skyeai 0.1.0
File Size Uploaded Provenance Actions
skyeai-0.1.0.tar.gz 1.1 MB Without provenance Details for skyeai-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skyeai 0.1.0
File Interpreter ABI Platform Actions
skyeai-0.1.0-py3-none-any.whl Python 3 none any Details for skyeai-0.1.0-py3-none-any.whl

Total release size: 1.5 MB

Release files / skyeai-0.1.0.tar.gz

Download URL skyeai-0.1.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
631eb4dff2c963da9e216c5e83ef62dcf54c942851582b039d127fbcb7af6574
BLAKE2b-256 checksum
How to use checksums
90fd2cf5049d8c671fb9d66b248bef09305269c1e549131c251df847f437e070
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / skyeai-0.1.0-py3-none-any.whl

Download URL skyeai-0.1.0-py3-none-any.whl
Size 489.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ddc4880fb2e5f14804fd49246b0e17aaf0e6b404596320bdd98f909dfc150cf
BLAKE2b-256 checksum
How to use checksums
6ad7f3a808d70664f6fdd0181a704a19af5836b957f99494af5717349e1c92f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for skyeai 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page