cApps Quickstart
Prerequisites
Note for Windows Users: WSL 2 is required.
Using the Quickstart Repository
Clone the github repository
git clone [coming soon]
cd nasdaiqInstall requirements and build the required packages
pnpm i && pnpm buildCopy the sample .env file and add your API keys:
cp .env.example .env~/.env
# API Keys
GEMINI_API_KEY=your_key_here
OPENAI_API_KEY=your_key_here
ANTHROPIC_API_KEY=your_key_here
BROWSER_AGENT_KEY=your_key_hereConfiguring your cApp
You can pre-define the actions and goals for the cApp which provides a configuration for the framework to scaffold for you.
Add configuration file in the project root with the name
capp.config.json
{
"capp_id": {
"name": "Expedai",
"logo_path": "https://url_to_logo/image.jpg",
"primary_color": "#hex_color",
"secondary_color": "#hex_color",
"initial_prompts": {
"goals": ["book_user_flights", "get_flight_info"],
"actions": ["book_flight", ""],
"analysis": "Analysis style guidelines...",
"narrative": "Communication style guidelines..."
}
}
}Run the script to scaffold the project with your configuration:
pnpm run scaffold --config="capp.config.json"Running the Application
Start the application:
# Start Terminal Interface
pnpm startThe agent will be live in your terminal and you can begin interacting with it.
Troubleshooting
Common issues and solutions:
Missing
.envfile:Make sure all required API keys are included in your
.envfile and verify that they are valid and not expired.
Incorrect NodeJS Version:
Verify your NodeJS version:
node -vMust be 23.3.0 or higher
Consider using nvm to manage Node versions
"Module not found" Error
Ensure the module is listed in your
dependenciesordevDependenciesinpackage.json.Run
npm installoryarn installto install missing modules.If the issue persists, delete the
node_modulesfolder and reinstall:rm -rf node_modules pnpm install
"npm WARN" Messages During Installation
Review the warnings and update any outdated packages:
npm install <package>@latest
Last updated