Metadata-Version: 2.4
Name: llm-openhands
Version: 0.0.2
Summary: LLM plugin to access OpenHands Cloud API
Author-email: nikkie <takuyafjp+develop@gmail.com>
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/ftnext/llm-openhands
Project-URL: Changelog, https://github.com/ftnext/llm-openhands/releases
Project-URL: Issues, https://github.com/ftnext/llm-openhands/issues
Project-URL: CI, https://github.com/ftnext/llm-openhands/actions
Keywords: llm,OpenHands
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
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 :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.28.1
Requires-Dist: llm
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-randomly; extra == "test"
Requires-Dist: respx>=0.22.0; extra == "test"
Dynamic: license-file

# llm-openhands

[![PyPI](https://img.shields.io/pypi/v/llm-openhands.svg)](https://pypi.org/project/llm-openhands/)
[![Changelog](https://img.shields.io/github/v/release/ftnext/llm-openhands?include_prereleases&label=changelog)](https://github.com/ftnext/llm-openhands/releases)
[![Tests](https://github.com/ftnext/llm-openhands/actions/workflows/test.yml/badge.svg)](https://github.com/ftnext/llm-openhands/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/ftnext/llm-openhands/blob/main/LICENSE)



## Installation

Install this plugin in the same environment as [LLM](https://llm.datasette.io/).
```bash
llm install llm-openhands
```
## Usage

Here's an example from https://www.all-hands.dev/blog/programmatically-access-coding-agents-with-the-openhands-cloud-api

**prerequisite**: OpenHands Cloud API key  
https://docs.all-hands.dev/modules/usage/cloud/cloud-api#obtaining-an-api-key

```bash
export LLM_OPENHANDS_KEY=your_api_key_here

llm -m openhands "Check for the authentication module to make sure that it follows the coding best practices for this repo." -o repository https://github.com/yourusername/your-repo
```

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd llm-openhands
```
Then create a new virtual environment and install the dependencies and test dependencies:
```bash
uv sync --extra test
```
To run the tests:
```bash
uv run pytest
```
