Installation
Prerequisites
- Node.js 20+
- pnpm (recommended in this monorepo)
Install the main package
BASH
pnpm add kortyxIf you prefer scoped packages, see Package Overview.
Runtime dependency notes
kortyx already re-exports agent/runtime/hooks/providers/memory/stream APIs.
You still need provider credentials at runtime (for example Google):
BASH
export GOOGLE_API_KEY=your_key_hereAccepted by current provider setup:
GOOGLE_API_KEYGEMINI_API_KEYGOOGLE_GENERATIVE_AI_API_KEYKORTYX_GOOGLE_API_KEYKORTYX_GEMINI_API_KEY
Optional: root config file
Create kortyx.config.mjs in your app root if you want automatic workflow directory discovery:
JS
export default {
workflowsDir: "./src/workflows",
fallbackWorkflowId: "general-chat",
registry: {
cache: true,
},
};This is consumed by loadKortyxConfig / createAgent.