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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a7e6dfa4cc705a5b5573ecf990186e541001beb642d8c2dfe13ed96651cfab3
|
|
| MD5 |
4306eeb9c0ae66d3075e440f40b2b6be
|
|
| BLAKE2b-256 |
b0d35e72a1a5ceef9b796c5707dc4a1a51446e339a373199a295e3d67f8c5a4d
|
Provenance
The following attestation bundles were made for oy_cli-0.1.2.tar.gz:
Publisher:
release.yml on wagov-dtt/oy-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oy_cli-0.1.2.tar.gz -
Subject digest:
0a7e6dfa4cc705a5b5573ecf990186e541001beb642d8c2dfe13ed96651cfab3 - Sigstore transparency entry: 1096634232
- Sigstore integration time:
-
Permalink:
wagov-dtt/oy-cli@590996ae74acb8b0cf854caa30a415dc2635f9ef -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/wagov-dtt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@590996ae74acb8b0cf854caa30a415dc2635f9ef -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59f34b7bac38fb9de3a30e73f3359422b2fcb1d6cfb833987fd91e5d5b9c3ab6
|
|
| MD5 |
dd5c3f4d17885e290f964b3cc1f9bba9
|
|
| BLAKE2b-256 |
c04d50ab5ded2df333a929da0187c5251a31f9109fdf880663a2ab331e98aae2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oy_cli-0.1.2-py3-none-any.whl -
Subject digest:
59f34b7bac38fb9de3a30e73f3359422b2fcb1d6cfb833987fd91e5d5b9c3ab6 - Sigstore transparency entry: 1096634240
- Sigstore integration time:
-
Permalink:
wagov-dtt/oy-cli@590996ae74acb8b0cf854caa30a415dc2635f9ef -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/wagov-dtt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@590996ae74acb8b0cf854caa30a415dc2635f9ef -
Trigger Event:
release
-
Statement type: