🚀 1-Minute TL;DR
🚀 1-Minute TL;DR
For senior devs who want to get started immediately:
- Install:
npm install @qckfx/agent
- Set API key:
LLM_API_KEY=your-key
andLLM_BASE_URL=your-provider-url
in.env
- Hello World:
- Real integration: See Web App Example or Node.js Service
- SDK API Reference - Complete method documentation
- Agent Configuration - Advanced config options
- Built-in Tools - Available agent capabilities
- Core Concepts - Architecture understanding
Installation
Install the SDK as a dependency in your project:Quick Start
1. Basic Agent Setup
Create your first agent with minimal configuration:2. Environment Variables
Set up your LLM provider credentials:3. Your First Real Integration
Here’s a more complete example showing key SDK features:Core Concepts
Agent Configuration
The Agent constructor takes a configuration object with these key properties:Execution Environments
Choose where your agent’s tools will execute:Local
Best for: Development and trusted environmentsExecutes tools in the same process as your application.
Docker
Best for: Sandboxed executionRuns tools inside a Docker container for isolation.
Remote
Best for: Production and scalabilityExecutes tools in remote sandboxed environments.
Event Handling
The SDK provides rich event handling for building responsive UIs:Common Integration Patterns
Web Application Integration
Node.js Service Integration
Advanced Features
Custom Tool Configurations
agent-config.json
:
Session Management
Permission Control
Next Steps
SDK API Reference
Complete API documentation for all SDK methods and options
Agent Configuration
Learn about advanced agent configuration options
Built-in Tools
Explore all the tools available to your agents
Core Concepts
Understand the architecture behind qckfx agents
Troubleshooting
TypeScript errors with Agent import
TypeScript errors with Agent import
Make sure you have the correct types installed:And ensure your
tsconfig.json
includes:Environment variable not found
Environment variable not found
The SDK looks for
LLM_API_KEY
and LLM_BASE_URL
environment variables. Make sure they’re set:Docker environment not working
Docker environment not working
Ensure Docker is running and accessible:
What’s Next?
Now that you have the SDK integrated, you can:- Build custom UIs: Create web or desktop applications with embedded agents
- Integrate with existing systems: Add AI capabilities to your current applications
- Scale your solution: Use remote environments for production deployments
- Customize behavior: Create specialized agents for specific use cases