cli_buddy 0.0.3+10 cli_buddy: ^0.0.3+10 copied to clipboard
A CLI tool to call any AI to ask, auto-complete, and generate code directly from any command line tool.
cli_buddy #
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] [![License: MIT][license_badge]][license_link]
Generated by the [Very Good CLI][very_good_cli_link] 🤖
Getting Started 🚀 #
Installlation if Dark SDK is already installed #
dart pub global activate cli_buddy
Installlation if Dark SDK is not installed #
TODO: Add installation instructions using the binary executable and script
(Running buddy set -s <path/to/secret.env>
command will create both secret.env
and buddy.config
files)
Add secret.env
#
Create a secret.env file in the root and add:
openrouter_key=YOUR_OPENROUTER_KEY
Add buddy.config
#
buddy.config example #
{
"secret_env_path": "secret.env",
"default_model": "openai/gpt-4o-mini-2024-07-18",
"max_tokens": null,
"temperature": 0.3,
"top_p": null,
"top_k": null,
"frequency_penalty": null,
"presence_penalty": null,
"repetition_penalty": null,
"min_p": null,
"top_a": null,
"seed": null,
"logit_bias": null,
"logprobs": true,
"top_logprobs": 1,
"response_format": null,
"stop": null
}
Usage #
# Suggest command
$ buddy suggest how can I update homebrew
# if you want to use special character use ""
$ buddy suggest "how can I update homebrew?"
# Show CLI version
$ buddy --version
# Show usage help
$ buddy --help
RoadMap #
- Create CodeCommender and add flag that will paste the code into a file
- Render Markdown format in CLI
- Support Rag