Installs into .claude/skills of the current project.
Are you the author of Api Usage?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/david-li0406-api-usage)
---
name: api-usage
description: How to use the OpenAI-compatible API server
tags: [api, rest, openai, integration]
---
# OpenAI API Usage Skill
The `kor-plugin-openai-api` exposes KOR agents via an OpenAI-compatible REST API.
## Starting the Server
```bash
kor serve --port 8080
```
## API Endpoints
### Chat Completions
```
POST /v1/chat/completions
```
Request body:
```json
{
"model": "kor-supervisor",
"messages": [
{"role": "user", "content": "Hello, KOR!"}
]
}
```
### List Models
```
GET /v1/models
```
Lists available agents as "models".
## Integration
Works with any OpenAI SDK:
```python
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8080/v1")
response = client.chat.completions.create(
model="kor-supervisor",
messages=[{"role": "user", "content": "Hello!"}]
)
```
## Use Cases
- IDE integrations (Cursor, Continue, etc.)
- Custom applications via REST
- Testing and development