Skip to main content

Keywright

Give AI agents temporary access to infrastructure without handing them your credentials. Keywright is a self-hosted broker for SSH hosts and MCP tools, with human approval, scoped access, revocation and an audit trail.

v0.0.1 is in preparation. Prebuilt preview images are published to GitHub Container Registry for Linux x86-64 and ARM64. The repository and image remain private during release preparation; the stable release, public availability and licensing review are pending.

Install the prebuilt broker

You need Docker Engine with the Compose plugin. No Git checkout, Python installation or local image build is needed.

  1. Download the keywright-install artifact from a successful test build and publish workflow. Extract it into a dedicated installation directory. Its compose.yaml pins the exact multi-platform image digest; SHA256SUMS covers the installation files.
  2. For the private preview, sign in with a GitHub personal access token (classic) that has read:packages and access to this package. Enter the token at Docker's password prompt:
    docker login ghcr.io -u YOUR_GITHUB_USERNAME
    
  3. In the installation directory:
    sha256sum -c SHA256SUMS
    docker compose up -d --wait
    

The source copy at deploy/compose.yaml also works on its own; it follows ghcr.io/johnrcarty/keywright:0.0.1-preview unless KEYWRIGHT_IMAGE selects another tag or digest. The install artifact is the reproducible choice for testing a particular build. When the image becomes public, registry login will no longer be required.

Open http://localhost:8700/ui and set the administrator password. The default port is bound to loopback. For a remote VM, use an SSH tunnel first:

ssh -L 8700:127.0.0.1:8700 user@test-vm

Then open the same localhost URL in your browser. Configure HTTPS and trusted proxy addresses before exposing the broker to other machines. Keep the broker separate from agent machines and use disposable targets for initial tests.

  1. Add an SSH host or upstream MCP server under Resources.
  2. Create an agent and copy its token once.
  3. Point an MCP client at /mcp with Authorization: Bearer <agent-token>, or install the CLI from source using the instructions below.
  4. Request one operation, approve it in the UI, and inspect its audit record.
  5. Revoke the access and verify the operation needs approval again.

Phone notifications through Home Assistant or a webhook are optional. The base stack needs no cloud account, model provider, identity provider or external database.

Develop from source

For a local Docker build, clone the repository and explicitly add the development overlay:

docker compose -f deploy/compose.yaml -f deploy/build.compose.yaml up -d --build

For direct Python development, Python 3.12 or newer and uv are required:

uv venv
uv pip install -e ./client -e '.[dev]' -e ./router
KW_HOST=127.0.0.1 KW_DATA_DIR=./data .venv/bin/keywright-server serve

In a separate shell, run the client as the user who operates the agent:

.venv/bin/kw login http://localhost:8700 --paste
.venv/bin/kw setup check

Optional agent setup: .venv/bin/kw setup claude-code or .venv/bin/kw setup codex. See the client guide for details.

.venv/bin/python -m pytest -q
node --test tests/test_topology_layout.cjs

The PostgreSQL/pgvector tests require an isolated database and KNOWLEDGE_TEST_PG_URL. Never point test configuration at a production database.

Optional integrations

Knowledge chunking changes are experimental pending retrieval evaluation. Optional features are not all covered by the minimal-stack installation check.

Keywright is a credential trust boundary. Protect its host and backups. Command scope matching is not a shell sandbox, and output inspection cannot prove arbitrary text is secret-free. The historical source security review records prior findings; it is not a certification of this candidate.

License

Keywright is licensed under Apache-2.0. Copyright 2026 Keywright contributors. See NOTICE and third-party notices. Commercial use and proprietary extensions are permitted under the license's terms. Unless explicitly stated otherwise, contributions intentionally submitted for inclusion in Keywright are provided under Apache-2.0.

Metadata

Release files for keywright-server 0.0.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 keywright-server 0.0.1
File Size Uploaded Provenance Actions
keywright_server-0.0.1.tar.gz 251.6 kB With provenance Details for keywright_server-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for keywright-server 0.0.1
File Interpreter ABI Platform Actions
keywright_server-0.0.1-py3-none-any.whl Python 3 none any Details for keywright_server-0.0.1-py3-none-any.whl

Total release size: 568.4 kB

Release files / keywright_server-0.0.1.tar.gz

Download URL keywright_server-0.0.1.tar.gz
Size 251.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ad788d60144f46899327a37f70479f8b908edffa14e5c1ebb3d224d1f3e828db
BLAKE2b-256 checksum
How to use checksums
1eed50cfe3eb62cd4e9cbe3421258f0cde5be37d00bc329274dd51bc0283359b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / keywright_server-0.0.1-py3-none-any.whl

Download URL keywright_server-0.0.1-py3-none-any.whl
Size 316.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c03585295aa9ca3a499ea4b64df105206e1e76df164593198779306fec9b480
BLAKE2b-256 checksum
How to use checksums
7b60342dd9937c6c91cddadb184524211c7d046c3e413b665b36c53f7324bc8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for keywright-server 0.0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for keywright_server-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

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.0.1 This release

2 release files Full 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