Skip to main content

Tiny local coding CLI with a small tool surface

Project description

oy-cli

Tiny AI coding assistant for your shell. Reads files, runs commands, makes edits - nothing fancy.

uv tool install oy-cli
oy "add type hints to the main function"

Why This Exists

Most AI coding tools are large, complex, or lock you into specific providers. oy is ~1000 lines of straightforward Python with a minimal tool surface. Easy to audit, easy to understand, easy to run safely.

Tools

File operations: read write edit patch list glob grep
Shell: bash (for builds, tests, git)
Network: webfetch (for docs, API lookups)

Requirements

  • Python 3.14+
  • bash, patch, rg (ripgrep)
  • OpenAI API key OR AWS credentials (for Bedrock)

Installation

Preferred:

uv tool install oy-cli

Alternative:

pip install oy-cli

This installs the oy command.

AWS Bedrock (automatic)

If you have AWS credentials configured, Bedrock is auto-configured:

oy models
oy model moonshotai.kimi-k2.5

To export Bedrock tokens for other tools:

eval "$(oy bedrock-token)"

OpenAI API

export OPENAI_API_KEY=...
oy "summarize this project"

For OpenAI-compatible endpoints:

export OPENAI_BASE_URL=https://your-endpoint.example/v1
export OPENAI_API_KEY=...

Commands

oy "prompt"              # Run with a prompt
oy models                # List available models
oy model <id>            # Set default model
oy model                 # Show current model
oy bedrock-token         # Export Bedrock credentials

Security

oy can run shell commands and modify files. Treat it like an automation tool with real permissions.

Recommended posture:

  • run it in a container or similarly constrained environment
  • mount only the project/dirs you want it to touch
  • avoid broad host access
  • do not expose secrets you do not want shell commands to inherit

Contributing

Development and release notes live in CONTRIBUTING.md.

License

Licensed under the Apache License 2.0. See LICENSE.

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

oy_cli-0.1.2.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

oy_cli-0.1.2-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file oy_cli-0.1.2.tar.gz.

File metadata

  • Download URL: oy_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oy_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0a7e6dfa4cc705a5b5573ecf990186e541001beb642d8c2dfe13ed96651cfab3
MD5 4306eeb9c0ae66d3075e440f40b2b6be
BLAKE2b-256 b0d35e72a1a5ceef9b796c5707dc4a1a51446e339a373199a295e3d67f8c5a4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for oy_cli-0.1.2.tar.gz:

Publisher: release.yml on wagov-dtt/oy-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oy_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: oy_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oy_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 59f34b7bac38fb9de3a30e73f3359422b2fcb1d6cfb833987fd91e5d5b9c3ab6
MD5 dd5c3f4d17885e290f964b3cc1f9bba9
BLAKE2b-256 c04d50ab5ded2df333a929da0187c5251a31f9109fdf880663a2ab331e98aae2

See more details on using hashes here.

Provenance

The following attestation bundles were made for oy_cli-0.1.2-py3-none-any.whl:

Publisher: release.yml on wagov-dtt/oy-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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