opencode_offline/packages/sdk/python/docs/installation.md

33 lines
471 B
Markdown
Raw Normal View History

# Installation
Requirements
2025-11-07 02:03:02 +08:00
- Python 3.8+
- uv (recommended) -> https://docs.astral.sh/uv/
Install uv
2025-11-07 02:03:02 +08:00
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Project setup
2025-11-07 02:03:02 +08:00
```bash
# From repo root or this directory
uv sync --dev --project packages/sdk/python
```
Using pip (alternative)
2025-11-07 02:03:02 +08:00
```bash
pip install opencode-ai
```
Preview docs locally
2025-11-07 02:03:02 +08:00
```bash
# From repo root
uv run --project packages/sdk/python mkdocs serve -f packages/sdk/python/mkdocs.yml
```