Skip to main content

cbcopy

Universal clipboard write CLI for AI agents. Cross-platform: Linux Wayland/X11, macOS, Windows, WSL.

Zero Python dependencies (stdlib only). Delegates to system clipboard tools with correct detection order and encoding.

Setup (local development)

uv sync

Usage

# Copy text from argument
cbcopy "hello world"

# Pipe from stdin
echo "hello" | cbcopy

# Copy file contents
cbcopy --file notes.txt

# Show detected platform and available tools
cbcopy --diagnostics

Silent on success (exit 0). Clear error on stderr (exit 1).

Install globally

uv tool install .

After install, run directly:

cbcopy "hello world"

Platform support

Platform Detection Tool Encoding
Windows sys.platform == "win32" clip.exe UTF-16LE
WSL WSL_DISTRO_NAME env clip.exe UTF-16LE
Linux Wayland WAYLAND_DISPLAY env wl-copy UTF-8
Linux X11 DISPLAY env xclip / xsel UTF-8
macOS sys.platform == "darwin" pbcopy UTF-8

Detection order matters: WSL is checked before Wayland because WSLg sets WAYLAND_DISPLAY.

Tests

uv run pytest

Metadata

Release files for cbcopy 0.1.1

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

Source distribution (sdist)

Source distribution for cbcopy 0.1.1
File Size Uploaded Provenance
cbcopy-0.1.1.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cbcopy 0.1.1
File Interpreter ABI Platform
cbcopy-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / cbcopy-0.1.1.tar.gz

Download URL cbcopy-0.1.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ac47d50764947c4da8cb87c83c7f04c4936edf0d67578de37ba1a07e3c9fe2dd
BLAKE2b-256 checksum
How to use checksums
d4e01e47309e6cf709348eb7a8cd37b930bf94320623655594bf7c13720a8015
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cbcopy-0.1.1-py3-none-any.whl

Download URL cbcopy-0.1.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1a6af5e30b56ea6a843e1d75adde4a66f435de5f58a94e62823de57e4ab0e02
BLAKE2b-256 checksum
How to use checksums
df860f87bfe88a3b8e3ac0de5ed0e69db3ef18d22e6864090415b24e4c18180d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for cbcopy 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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