GETTING_STARTED
From zero to a running autonomous agent in under 5 minutes. We'll build a simple research assistant that can use tools and maintain conversation history.
PREREQUISITES#
SYSTEM_REQUIREMENTS
- • Node.js 18+ or Bun 1.0+
- • npm, yarn, or pnpm
- • 4GB RAM minimum
- • Internet connection
API_KEYS_NEEDED
- • OpenAI API key (recommended)
- • Anthropic API key (optional)
- • Mistral API key (optional)
QUICK_START_GUIDE#
INSTALL_AKIOS_CLI
The AKIOS CLI provides project scaffolding, local development server, and deployment tools.
ALTERNATIVE_INSTALLATION
You can also use npx @akios/cli for one-off commands without global installation.
CREATE_NEW_PROJECT
Use the CLI to scaffold a new agent project with TypeScript, testing, and best practices pre-configured.
CONFIGURE_ENVIRONMENT
Set up your API keys and configuration. The CLI will help you create a secure environment file.
SECURITY_NOTE
Never commit .env files to git. Use akios secrets for production deployments.
BUILD_YOUR_FIRST_AGENT
The scaffolded project includes a basic agent. Let's examine and run it.
TEST_LOCALLY
Start the development server and test your agent in the browser.
Open http://localhost:3000 in your browser. You should see a chat interface where you can test your agent.
DEPLOY_TO_PRODUCTION
Once you're happy with your agent, deploy it to the AKIOS Edge Runtime.
COMMON_ISSUES_AND_TROUBLESHOOTING#
ERROR:_OPENAI_API_KEY_MISSING
Ensure you have a .env file in your root directory and that dotenv/config is imported at the top of your file.
ERROR:_TOOL_SCHEMA_MISMATCH
If the LLM tries to call a tool with invalid arguments, AKIOS will throw a validation error. Improve your tool description to guide the model.
ERROR:_MODEL_NOT_RESPONDING
Check your API key is valid and has sufficient credits. Try a different model or provider.
PERFORMANCE:_AGENT_IS_SLOW
Enable streaming for better UX and consider caching for frequent queries.
CONFIGURATION_DEEP_DIVE#
AKIOS agents can be configured via constructor options, environment variables, or configuration files.
SUPPORTED_MODELS_&_PROVIDERS
| Provider | Models | Key Variable |
|---|---|---|
| OpenAI | gpt-4o, gpt-4-turbo, gpt-3.5-turbo | OPENAI_API_KEY |
| Anthropic | claude-3-opus, claude-3-sonnet, claude-3-haiku | ANTHROPIC_API_KEY |
| Mistral | mistral-large, mistral-medium, mistral-small | MISTRAL_API_KEY |
| gemini-pro, gemini-pro-vision | GOOGLE_API_KEY | |
| Azure OpenAI | gpt-4, gpt-3.5-turbo (Azure deployment) | AZURE_OPENAI_API_KEY |
ADVANCED_CONFIGURATION
WHATS_NEXT
JOIN_THE_COMMUNITY
Have questions or want to contribute? Join our community of developers building the future of autonomous agents.