Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

opencode-client

Python client for opencode server API.

Installation

pip install opencode-client

Usage

from opencode_client import OpencodeClient

# Create client (defaults to http://localhost:36000)
client = OpencodeClient()

# Or specify custom URL
client = OpencodeClient(base_url="http://localhost:8000")

# List sessions
sessions = client.list_sessions()

# Send message to session (by ID or title)
response = client.send_message("headless-1", "hello world")

# Get session info
session = client.get_session("ses_abc123")

# Create new session
new_session = client.create_session(title="My Session")

# List messages
messages = client.list_messages("headless-1")

Environment Variables

  • OPENCODE_SERVER - Override default server URL (default: http://localhost:36000)

License

MIT

Metadata

Release files for opencode-sdk 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opencode-sdk 0.2.0
File Size Uploaded
opencode_sdk-0.2.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opencode-sdk 0.2.0
File Interpreter ABI Platform
opencode_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / opencode_sdk-0.2.0.tar.gz

Download URL opencode_sdk-0.2.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f804b525f33e0d45eca7dc3734ad2f77fa186a986edcdd608654338f5facf4d8
BLAKE2b-256 checksum
How to use checksums
dfa1a798783ce33c93a4c440200146678082de82ec142742c2ee7c03c1e63fb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.3

Release files / opencode_sdk-0.2.0-py3-none-any.whl

Download URL opencode_sdk-0.2.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d64b6c735560487c6d58f4a8c20c99a19aa9859789f32db8bece8ca07dbeeb15
BLAKE2b-256 checksum
How to use checksums
ee2c88f75771cde9a94972429a9fb58e5dee8729202ad6dc1bd17b9886cf28e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page