Skip to main content

Skye, intelligence that travels light

Skye AI

I am sick of installing a pile of dependencies I never use every time I need a generative AI framework. So I wrote one with none.

A GenAI library for Python with no third-party dependencies: one client for OpenAI, Anthropic, Bedrock, Azure OpenAI and Google, with routing, fallbacks, tools and state on top, all on the standard library. It installs at 1.9 MB and imports in about 20 ms.

Documentation · Quick start · Examples · PyPI

PyPI Python 3.11+ License: MIT Documentation Lambda zip: 0.61 MB Built with Kiro

Quick start (60 seconds)

pip install skyeai
export OPENAI_API_KEY=sk-...
import skye
from skye import UserMessage

client = skye.provider("openai")  # the key from OPENAI_API_KEY
response = client.complete(messages=[UserMessage(content="Hello!")], model="gpt-4o-mini")
print(response.content)

The same line works for "anthropic", "bedrock", "azure" and "google", each with its standard key variable.

On AWS Lambda

examples/serverless/lambda_zip is a complete function: handler.py calls Bedrock with the function's role, and build.sh packs it with Skye into function.zip, 0.61 MB. Deploy it with aws lambda create-function --runtime python3.12 --handler handler.handler --zip-file fileb://function.zip; the steps are in its README.

Size and speed

Measured on skyeai 0.3.1 Value Limit the CI enforces
Lambda zip, library and handler (examples/serverless/lambda_zip) 0.61 MB 1 MB (AWS: 50 MB)
Installed size of the core 1.9 MB 2 MB
Third-party dependencies of the core 0 0
import skye in a fresh interpreter about 20 ms 100 ms

Provider calls go over REST with the standard library and AWS requests are signed with SigV4 in the standard library, so Bedrock needs nothing beyond the Lambda Python runtime. Every extra is optional and loaded only when used. The limits are in budgets.toml and the CI fails any change that exceeds them.

Works today

Component What you can use
models OpenAI, Anthropic, Bedrock, Azure OpenAI, Google; streaming and async; structured output into dataclasses; embeddings; images in messages; token count and cost
router aliases over several models, routing strategies, fallbacks, retries, cooldown; its state in any store
store memory, file, DynamoDB, Valkey/Redis, PostgreSQL, Lambda durable functions; one extra per driver
tools function calling with local functions and remote APIs; a built-in MCP client; toolkits (files, openapi, human, shell)
prompts templates and few-shot examples; prompts and routers written in .skye files, with shared parts (include, use, override); six bundled prompts and a gallery of 26 to copy
auth API keys, SigV4, credential sources and secret managers
plugins your own provider, backend, toolkit, routing strategy or agent with skye.Plugins(), and an offline check for each
CLI skye check, fmt, render, new, prompt, plugins, skill and vscode for .skye files

Roadmap

Agents, memory, safety filters (guard), policies, observability, a tool gateway, teams and flows are specified in .kiro/specs/ and have no released code yet. Their state: Status and roadmap.

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 .skye prompts: roles, control flow, few-shot turns, output formats, and a gallery of 26 prompts to copy
examples/plugins add a provider, backend, toolkit, routing strategy or agent without changing Skye
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 online at skye.readthedocs.io; the source of every page is in docs/.

You want to Page
Install and make a first call Get started
Call a provider, stream, get structured output Models guides
Route across models with fallbacks Routing guides
Write prompts and routers in .skye The .skye language, reference
Add your own provider, backend or toolkit Write a plugin
Keep state across invocations Choose a store backend
Deploy on AWS Lambda Deploy on AWS Lambda
Look up a class or a function Python API, CLI
Understand the design Architecture, Serverless first
See what is planned Status and 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. Add a line under Unreleased in CHANGELOG.md for any change a user would notice.

Everyone taking part in the project follows the Code of Conduct.

License

MIT License - see LICENSE file for details.

Support

Acknowledgments

Skye AI is inspired by:

  • LangChain - For pioneering LLM application frameworks
  • LiteLLM - For provider abstraction patterns
  • Clean Architecture - For architectural principles
  • Cedar - For the policy model (principal, action, resource, context; default deny; forbid overrides permit)

Metadata

Release files for skyeai 0.3.1

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.3.1
File Size Uploaded Provenance Actions
skyeai-0.3.1.tar.gz 2.0 MB Without provenance Details for skyeai-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 2.7 MB

Release files / skyeai-0.3.1.tar.gz

Download URL skyeai-0.3.1.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
6c9459aadc4126968c17e8622969981330d2fa3a937207facc6af59c02037b0f
BLAKE2b-256 checksum
How to use checksums
2ca80e6c58813e750d958539f0cdc8c1b4f6a1557f34eaf7d8acb254ba768538
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL skyeai-0.3.1-py3-none-any.whl
Size 629.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc44f24831f4f6ae8f7b5ba8c6f9abd50016bd27ec2df6e13e7a5a5f3b31443f
BLAKE2b-256 checksum
How to use checksums
f9cd7664a0a2672e10347c4b04a2fe9b5d51f02e2ac49aa0047072e4c6d4b819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for skyeai 0.3.1

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