Metadata-Version: 2.4
Name: blaxel
Version: 0.1.18rc64
Summary: Add your description here
Project-URL: Homepage, https://blaxel.ai
Project-URL: Documentation, https://docs.blaxel.ai
Project-URL: Repository, https://github.com/blaxel-ai/sdk-python
Project-URL: Changelog, https://docs.blaxel.ai/changelog
Author-email: cploujoux <cploujoux@blaxel.ai>
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: attrs>=21.3.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: mcp<=1.7.1
Requires-Dist: opentelemetry-api>=1.28.0
Requires-Dist: opentelemetry-exporter-otlp>=1.28.0
Requires-Dist: opentelemetry-instrumentation-anthropic==0.40.6
Requires-Dist: opentelemetry-instrumentation-cohere==0.40.6
Requires-Dist: opentelemetry-instrumentation-fastapi==0.54b1
Requires-Dist: opentelemetry-instrumentation-ollama==0.40.6
Requires-Dist: opentelemetry-instrumentation-openai==0.40.6
Requires-Dist: opentelemetry-instrumentation-system-metrics
Requires-Dist: opentelemetry-sdk>=1.28.0
Requires-Dist: pydantic<2.11.0,>=2.10.3
Requires-Dist: pyjwt>=2.10.1
Requires-Dist: python-dateutil>=2.8.0
Requires-Dist: pyyaml<6.1.0,>=6.0.2
Requires-Dist: requests<2.33.0,>=2.32.3
Requires-Dist: tomli>=2.2.1
Requires-Dist: websockets<15.0.0
Provides-Extra: crewai
Requires-Dist: crewai>=0.120.1; extra == 'crewai'
Requires-Dist: opentelemetry-instrumentation-crewai>=0.40.6; extra == 'crewai'
Provides-Extra: google-adk
Requires-Dist: google-adk>=0.2.0; extra == 'google-adk'
Requires-Dist: litellm>=1.63.11; extra == 'google-adk'
Provides-Extra: langchain
Requires-Dist: langchain-anthropic>=0.3.10; extra == 'langchain'
Requires-Dist: langchain-cerebras>=0.5.0; extra == 'langchain'
Requires-Dist: langchain-cohere>=0.4.3; extra == 'langchain'
Requires-Dist: langchain-community<0.4.0,>=0.3.3; extra == 'langchain'
Requires-Dist: langchain-core<0.4.0,>=0.3.13; extra == 'langchain'
Requires-Dist: langchain-deepseek-official>=0.1.0.post1; extra == 'langchain'
Requires-Dist: langchain-openai>=0.3.10; extra == 'langchain'
Requires-Dist: langchain-xai>=0.2.2; extra == 'langchain'
Requires-Dist: langgraph<0.3.0,>=0.2.40; extra == 'langchain'
Requires-Dist: opentelemetry-instrumentation-langchain>=0.35.0; extra == 'langchain'
Requires-Dist: pillow>=10.0.0; extra == 'langchain'
Provides-Extra: livekit
Requires-Dist: livekit-agents[anthropic,cartesia,deepgram,elevenlabs,groq,openai,silero,turn-detector]~=1.0; extra == 'livekit'
Requires-Dist: livekit-plugins-noise-cancellation~=0.2; extra == 'livekit'
Provides-Extra: llamaindex
Requires-Dist: llama-index-llms-anthropic>=0.6.10; extra == 'llamaindex'
Requires-Dist: llama-index-llms-cerebras>=0.2.2; extra == 'llamaindex'
Requires-Dist: llama-index-llms-cohere>=0.4.0; extra == 'llamaindex'
Requires-Dist: llama-index-llms-deepseek>=0.1.1; extra == 'llamaindex'
Requires-Dist: llama-index-llms-google-genai>=0.1.7; extra == 'llamaindex'
Requires-Dist: llama-index-llms-groq>=0.3.1; extra == 'llamaindex'
Requires-Dist: llama-index-llms-mistralai>=0.4.0; extra == 'llamaindex'
Requires-Dist: llama-index-llms-openai>=0.3.28; extra == 'llamaindex'
Requires-Dist: llama-index>=0.12.26; extra == 'llamaindex'
Requires-Dist: opentelemetry-instrumentation-llamaindex>=0.35.0; extra == 'llamaindex'
Provides-Extra: openai-agents
Requires-Dist: openai-agents>=0.0.7; extra == 'openai-agents'
Provides-Extra: pydantic-ai
Requires-Dist: pydantic-ai>=0.0.48; extra == 'pydantic-ai'
Description-Content-Type: text/markdown

# Blaxel Python SDK

<p align="center">
  <img src="https://blaxel.ai/logo-bg.png" alt="Blaxel"/>
</p>

**Blaxel is a computing platform for AI agent builders, with all the services and infrastructure to build and deploy agents efficiently.** This repository contains the Python SDK to create and manage resources on Blaxel.

## Table of Contents

- [Installation](#installation)
  - [Authentication](#authentication)
- [Features](#features)
- [Quickstart](#quickstart)
- [Contributing](#contributing)
- [License](#license)



## Installation

Install Blaxel SDK which lets you manage Blaxel resources.

```bash
## Using pip
pip install blaxel

## Using uv
uv pip install blaxel

## Using uv add
uv add blaxel
``` 



### Authentication

The Blaxel SDK authenticates with your workspace using credentials from these sources, in priority order:
1. When running on Blaxel, authentication is handled automatically
2. Variables in your .env file (`BL_WORKSPACE` and `BL_API_KEY`, or see [this page](https://docs.blaxel.ai/Agents/Variables-and-secrets) for other authentication options).
3. Environment variables from your machine
4. Configuration file created locally when you log in through Blaxel CLI (or deploy on Blaxel)

When developing locally, the recommended method is to just log in to your workspace with Blaxel CLI. This allows you to run Blaxel SDK functions that will automatically connect to your workspace without additional setup. When you deploy on Blaxel, this connection persists automatically.

When running Blaxel SDK from a remote server that is not Blaxel-hosted, we recommend using environment variables as described in the third option above.



## Features
- Agents & MCP servers
  - [Create MCP servers](https://docs.blaxel.ai/Functions/Create-MCP-server)
  - [Connect to MCP servers and model APIs hosted on Blaxel](https://docs.blaxel.ai/Agents/Develop-an-agent-ts)
  - [Call agents from another agent](https://docs.blaxel.ai/Agents/Develop-an-agent-ts#connect-to-another-agent-multi-agent-chaining)
  - [Deploy on Blaxel](https://docs.blaxel.ai/Agents/Deploy-an-agent)
- Sandboxes
  - [Create and update sandboxes and sandbox previews](https://docs.blaxel.ai/Sandboxes/Overview)
  - [Run filesystem operations and processes on a sandbox](https://docs.blaxel.ai/Sandboxes/Processes)
- [Use environment variables or secrets](https://docs.blaxel.ai/Agents/Variables-and-secrets)



## Quickstart

Blaxel CLI gives you a quick way to create new applications: agents, MCP servers, jobs, etc - and deploy them to Blaxel.

**Prerequisites**:
- **Node.js:** v18 or later.
- **Blaxel CLI:** Make sure you have Blaxel CLI installed. If not, [install it](https://docs.blaxel.ai/cli-reference/introduction):
  ```bash
  curl -fsSL \
  https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh \
  | BINDIR=/usr/local/bin sudo -E sh
  ```
- **Blaxel login:** Login to Blaxel:
  ```bash
    bl login YOUR-WORKSPACE
  ```

```bash
bl create-agent-app myfolder
cd myfolder
bl deploy
```

Also available:
-  `bl create-mcp-server`
-  `bl create-job`



## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.



## License

This project is licensed under the MIT License - see the LICENSE file for details.
