cli_buddy 0.0.3+2 cli_buddy: ^0.0.3+2 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 🚀 #
Create a secret.env file in the root and add:
openrouter_key=YOUR_OPENROUTER_KEY
If the CLI application is available on pub, activate globally via:
dart pub global activate cli_buddy
Or locally via:
dart pub global activate --source=path <path to this package>
config file example #
buddy.config #
{ "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?
# Show CLI version
$ buddy --version
# Show usage help
$ buddy --help