What it does
- Accepts questions from the terminal
- Searches Alchemyst for relevant stored context
- Injects that context into the prompt
- Generates grounded responses using an LLM
Repo link
The full source code for this CLI agent is also available in our public repository. It includes this Node.js implementation as well as a Python version of the same context-aware agent. If you prefer Python, you can use that implementation directly or adapt it to your workflow. View the repository:Prerequisites
You’ll need:- Node.js 18+
- An Alchemyst AI API key
- A Google Gemini API key
1. Set your environment variables
How it works
The flow is simple:- Accept a user question from the CLI
- Search Alchemyst for relevant context
- Inject retrieved context into the LLM prompt
- Generate and display the response

