Metadata-Version: 2.4
Name: loki-mode-sdk
Version: 7.5.9
Summary: Python SDK for Loki Mode - autonomous multi-agent development platform
Author-email: Lokesh Mure <lokesh@autonomi.dev>
License-Expression: BUSL-1.1
Project-URL: Homepage, https://github.com/asklokesh/loki-mode
Project-URL: Repository, https://github.com/asklokesh/loki-mode
Project-URL: Documentation, https://github.com/asklokesh/loki-mode/wiki
Project-URL: Bug Tracker, https://github.com/asklokesh/loki-mode/issues
Keywords: agent-orchestration,ai,ai-agents,anthropic,automation,autonomous,claude,claude-code,cli,code-generation,codex,coding-assistant,consensus,developer-tools,devtools,distributed-systems,embeddings,enterprise,gemini,gemini-cli,gpt,hive-mind,large-language-model,llm,loki-mode,machine-learning,mcp,mistral,model-context-protocol,multi-agent,ollama,openai,openclaw,opencode,orchestration,prd,sdk,self-learning,swarm,swarm-intelligence,workflow
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.24.0
Requires-Dist: pydantic>=2.0.0
Dynamic: license-file

# loki-mode-sdk

Python SDK for [Loki Mode](https://github.com/asklokesh/loki-mode), the autonomous multi-agent development platform.

## Install

```bash
pip install loki-mode-sdk
```

## Quick Start

```python
from loki_mode_sdk import Client

client = Client(base_url="http://localhost:57374")

# Check dashboard status
status = client.get_status()
print(status)

# List projects
projects = client.list_projects()
for p in projects:
    print(f"{p.id}: {p.name} ({p.status})")
```

## API Reference

The SDK wraps the Loki Mode Dashboard API (default port 57374).

### Client Methods

- `client.get_status()` - Dashboard status and version
- `client.list_projects()` - List all projects
- `client.create_project(name)` - Create a new project
- `client.get_project(id)` - Get project details
- `client.list_runs(project_id)` - List runs
- `client.cancel_run(run_id)` - Cancel a running execution
- `client.query_audit()` - Query audit trail
- `client.create_api_key(name)` - Create API key
- `client.rotate_api_key(key_id)` - Rotate API key

## Requirements

- Python 3.10+
- Running Loki Mode instance (`npm install -g loki-mode`)

## License

Business Source License 1.1 -- see [LICENSE](../../LICENSE)
