
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@callstack/ai-cli
Advanced tools
AI assistant in your terminal.
$ ai "Tell me an interesting fact about the Roman Empire"
me: Tell me an interesting fact about the Roman Empire
ai: The Roman Empire had a vast network of roads extending over 250,000 miles at its peak...
Install @callstack/ai-cli
npm package globally:
npm install -g @callstack/ai-cli
You will need a valid API key from one of supported AI inference providers: OpenAI or Perplexity. Using these APIs is paid but the costs should be very low, typically much less than $0.01 per interaction.
Run ai init
to create a basic ~/.airc.json
config file with your OpenAI or Perplexity API key.
$ ai init
Read more about the configuration file format and available option.
Run ai [query]
to start a chat with an AI assistant. You can put the question in the params.
$ ai "Tell me a joke"
me: Tell me a joke
ai: Why don’t skeletons fight each other? They don’t have the guts.
CLI options are passed when invoking the ai
commend:
--help
: display available options--provider [name]
(or -p [name]
): select an inference provider to use--model [name]
(or -m [name]
): select a model to use--creative
: respond in a creative way--precise
: respond in a more accurate wayYou need to have an API key for selected provider in your ~/.airc.json
file.
See more info about the command line options.
CLI commands are available when using CLI in interactive mode.
/help
: display available commands/exit
: exit the CLI/info
: display information about current session/forget
: forget previous messages in the session/verbose
: enable/disable verbose modeSee the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
AI assistent in your terminal.
The npm package @callstack/ai-cli receives a total of 3 weekly downloads. As such, @callstack/ai-cli popularity was classified as not popular.
We found that @callstack/ai-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.