Skip to main content

Install agent tool packages into global or project OpenCode configurations

Project description

OpenCode Agent Deploy

opencode-agent-deploy installs existing agent packages from public PyPI into isolated Python environments and generates their OpenCode skills, tools, plugins, and configuration with absolute runtime paths.

Version 0.1.0 supports these already published deploy packages:

  • pdf: agent-pdf-workspace==0.1.1
  • mapper: agent-codinglanguage-mapper==1.1.0

The upstream packages are not copied or republished. The deploy command downloads the selected, pinned distributions directly from https://pypi.org/simple.

Requirements

  • Python 3.11 through 3.14
  • An OpenCode installation
  • Network access to public PyPI during deployment

Install the deploy command with an isolated application installer:

uv tool install opencode-agent-deploy

Alternatively, use pipx install opencode-agent-deploy or install it into your own virtual environment.

Interactive installation

Run:

opencode-agent-deploy install

The command shows both package names and pinned versions. Select 1, 2, or 1,2, then select global or project scope and confirm the plan. Global scope writes to the OpenCode config directory. Project scope writes to opencode.json and .opencode/ below the selected project.

Automated installation

Install both packages into the current project:

opencode-agent-deploy install \
  --package pdf \
  --package mapper \
  --scope project \
  --target "$PWD" \
  --yes

Install only the PDF workspace globally:

opencode-agent-deploy install \
  --package pdf \
  --scope global \
  --yes

Use an explicit global OpenCode config directory when automatic discovery is not appropriate:

opencode-agent-deploy install \
  --package mapper \
  --scope global \
  --config-dir "$HOME/.config/opencode" \
  --yes

For automation, every selected package is supplied with a repeated --package flag and the scope is supplied with --scope. --json emits a machine-readable result. --dry-run downloads and validates the packages in temporary environments and performs collision checks without writing OpenCode files or managed environments.

Managed files and environments

Each deploy package gets a separate virtual environment under the platform data directory for opencode-agent-deploy. Global environments use venvs/global/<package>. Project environments use venvs/projects/<project-hash>/<package>, so project dependencies cannot collide.

Generated OpenCode artifacts contain the absolute Python or console-script path from their managed environment. The PDF skill and TypeScript tool therefore call the selected pdfws executable directly. The mapper skill, plugin, and agent configuration use the selected mapper environment's Python interpreter directly. No shell activation or ambient PATH modification is required.

The installer owns only files recorded in opencode-agent-deploy-manifest.json. It preserves unrelated OpenCode configuration and refuses to overwrite:

  • an existing destination it does not own;
  • an owned destination changed locally since the previous deployment;
  • a symlink in a managed path;
  • malformed or unexpected exporter output.

Artifact updates and the ownership manifest are committed atomically. Existing package environments are restored if preparation or validation fails.

OpenCode verification

Restart OpenCode after a successful deployment so it reloads project or global integrations. Confirm that the installed PDF skills/tools and mapper skill/plugin/agent appear in the intended scope. The command output identifies the config file, manifest, environments, and generated artifacts; --json is useful for scripted verification.

Trust boundary

Deployment installs and executes the pinned upstream exporters. Only use releases you trust. Subprocesses are invoked as argument arrays without a shell, and package downloads are restricted to the public PyPI simple index. The deploy command does not read or print credential files and does not manage PyPI credentials.

Security reporting and supported-version policy are in SECURITY.md. The reproducible maintainer procedure is in docs/release.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opencode_agent_deploy-0.1.0.tar.gz (78.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opencode_agent_deploy-0.1.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file opencode_agent_deploy-0.1.0.tar.gz.

File metadata

File hashes

Hashes for opencode_agent_deploy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab9f4c764293ae07568ba00aa9451732277b0c47c0fc4b796bcdce5723707367
MD5 9cab8603841f1a0daba3b1d08976626b
BLAKE2b-256 14e8d0886e667496691ad29d01290704086189566ec3f9d2d12135de706feb93

See more details on using hashes here.

File details

Details for the file opencode_agent_deploy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opencode_agent_deploy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49e1674d99041e6ffd525ce1c68df66fd834b1dbaef98fdfa1b51e9b318dc5c8
MD5 39980704e84c0debea7c0a92b9cad090
BLAKE2b-256 6f3f864ead3e4ef75e2203338efaf6b7dfb228d2bcd38f7d019a574c4a2a99c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page