|
1 | | -# create-agents |
| 1 | +## Launch your first agent |
2 | 2 |
|
3 | | -Create an Inkeep Agent Framework directory with multi-service architecture. |
| 3 | +### Prerequisites |
4 | 4 |
|
5 | | -## Quick Start |
| 5 | +Before getting started, ensure you have the following installed on your system: |
6 | 6 |
|
7 | | -```bash |
8 | | -# Interactive mode |
9 | | -npx create-agents |
| 7 | +- [Node.js](https://nodejs.org/en/download/) version 22 or higher |
| 8 | +- [Docker](https://docs.docker.com/get-docker/) |
| 9 | +- [pnpm](https://pnpm.io/installation) version 10 or higher |
10 | 10 |
|
11 | | -# With directory name |
12 | | -npx create-agents my-agent-directory |
| 11 | +You can verify by running: |
13 | 12 |
|
14 | | -# With options |
15 | | -npx create-agents my-agent-directory --project-id my-project --openai-key sk-... --anthropic-key sk-ant-... |
| 13 | +```bash |
| 14 | +node --version |
| 15 | +pnpm --version |
| 16 | +docker --version |
16 | 17 | ``` |
17 | 18 |
|
18 | | -## Usage |
| 19 | +### Step 1: Create a new agents project |
19 | 20 |
|
20 | | -`@inkeep/create-agents` is a wrapper around the Inkeep CLI's `create` command that sets up a complete Agent Framework directory with: |
| 21 | +Run the quickstart script on a target folder: |
21 | 22 |
|
22 | | -### Interactive Mode |
23 | | -Run without arguments for an interactive setup experience: |
24 | 23 | ```bash |
25 | | -npx create-agents |
| 24 | +npx @inkeep/create-agents my-agents |
26 | 25 | ``` |
27 | 26 |
|
28 | | -You'll be prompted for: |
29 | | -- Directory name |
30 | | -- Tenant ID |
31 | | -- Project ID |
32 | | -- Anthropic API key (recommended) |
33 | | -- OpenAI API key (optional) |
| 27 | +Navigate to the folder |
34 | 28 |
|
35 | | -### Direct Mode |
36 | | -Specify options directly: |
37 | 29 | ```bash |
38 | | -pnpm create-agents my-agent-directory --project-id my-project-id --anthropic-key sk-ant-... --openai-key sk-... |
| 30 | +cd my-agents |
39 | 31 | ``` |
40 | 32 |
|
41 | | -## Options |
42 | | - |
43 | | -- `--project-id <project-id>` - Project identifier for your agents |
44 | | -- `--openai-key <openai-key>` - OpenAI API key (optional) |
45 | | -- `--anthropic-key <anthropic-key>` - Anthropic API key (recommended) |
| 33 | +Open the folder using your coding editor. To open with Cursor, you can run `cursor .` |
46 | 34 |
|
47 | | -## What's Created |
| 35 | +### Step 2: Run the setup script |
48 | 36 |
|
49 | | -After running `@inkeep/create-agents`, you'll have a complete Agent Framework Directory: |
| 37 | +Ensure Docker Desktop (or Docker daemon) is running before running the setup script. |
50 | 38 |
|
| 39 | +```bash |
| 40 | +pnpm setup-dev |
51 | 41 | ``` |
52 | | -my-agent-directory/ |
53 | | -├── src/ |
54 | | -│ └── <project-id>/ # Agent configurations |
55 | | -│ ├── hello-agent.ts # Example agent configuration |
56 | | -│ ├── inkeep.config.ts # Inkeep CLI configuration |
57 | | -│ └── .env # CLI environment variables |
58 | | -├── apps/ |
59 | | -│ ├── manage-api/ # Manage API service |
60 | | -│ │ ├── src/index.ts # API server entry point |
61 | | -│ │ ├── package.json # Service dependencies |
62 | | -│ │ ├── tsconfig.json # TypeScript config |
63 | | -│ │ └── .env # Service environment |
64 | | -│ ├── run-api/ # Run API service |
65 | | -│ │ ├── src/index.ts # API server entry point |
66 | | -│ │ ├── package.json # Service dependencies |
67 | | -│ │ ├── tsconfig.json # TypeScript config |
68 | | -│ │ └── .env # Service environment |
69 | | -│ └── shared/ # Shared code |
70 | | -│ └── credential-stores.ts # Credential store config |
71 | | -├── package.json # Root package with workspaces |
72 | | -├── turbo.json # Turbo build configuration |
73 | | -├── drizzle.config.ts # Database configuration |
74 | | -├── biome.json # Linting and formatting |
75 | | -├── .env # Root environment variables |
76 | | -├── .env.example # Environment template |
77 | | -├── .gitignore # Git ignore rules |
78 | | -└── README.md # Project documentation |
79 | | -``` |
80 | | - |
81 | | -## Next Steps |
82 | | - |
83 | | -1. **Navigate to your directory:** |
84 | | - ```bash |
85 | | - cd my-agent-directory |
86 | | - ``` |
87 | | - |
88 | | -2. **Start the services:** |
89 | | - ```bash |
90 | | - # Start both Manage API and Run API |
91 | | - pnpm dev |
92 | | - ``` |
93 | | - |
94 | | -3. **In a new terminal, start the Manage UI:** |
95 | | - ```bash |
96 | | - inkeep dev |
97 | | - ``` |
98 | 42 |
|
99 | | -4. **Deploy your project:** |
100 | | - ```bash |
101 | | - cd src/<project-id>/ |
102 | | - pnpm inkeep push |
103 | | - ``` |
| 43 | +Or if you are using a cloud database, you can skip the docker database startup by running: |
104 | 44 |
|
105 | | -## Available Services |
106 | | - |
107 | | -After setup, you'll have access to: |
108 | | - |
109 | | -- **Manage API** (Port 3002): Agent configuration and management |
110 | | -- **Run API** (Port 3003): Agent execution and chat processing |
111 | | -- **Manage UI** (Port 3000): Visual agent builder (via `npx inkeep dev`) |
112 | | - |
113 | | -## Commands Available in Your Directory |
114 | | - |
115 | | -- `pnpm dev` - Start both API services with hot reload |
116 | | -- `pnpm db:migrate` - Apply database migrations |
117 | | -- `inkeep dev` - Start the Manage UI |
118 | | -- `inkeep push` - Deploy project configurations |
| 45 | +```bash |
| 46 | +pnpm setup-dev --skip-docker |
| 47 | +``` |
119 | 48 |
|
120 | | -## Environment Variables |
| 49 | +Make sure your DATABASE_URL environment variable is configured for your cloud database. |
121 | 50 |
|
122 | | -The directory includes multiple environment files: |
| 51 | +### Step 3: Launch the dev environment |
123 | 52 |
|
124 | | -### Root `.env` (shared configuration) |
125 | 53 | ```bash |
126 | | -# AI Provider Keys |
127 | | -ANTHROPIC_API_KEY=your-anthropic-key-here |
128 | | -OPENAI_API_KEY=your-openai-key-here |
| 54 | +pnpm dev |
| 55 | +``` |
129 | 56 |
|
130 | | -# Service Ports |
131 | | -MANAGE_API_PORT=3002 |
132 | | -RUN_API_PORT=3003 |
| 57 | +The Visual Builder will auto-open at http://localhost:3000. |
133 | 58 |
|
134 | | -# Database |
135 | | -DATABASE_URL=your-pg-database-url-here |
| 59 | +### Step 4: Chat with your agent |
136 | 60 |
|
137 | | -# Environment |
138 | | -ENVIRONMENT=development |
139 | | -LOG_LEVEL=debug |
140 | | -``` |
| 61 | +Navigate to the **Activities Planner** agent at http://localhost:3000 and ask about fun activities at a location of your choice: |
141 | 62 |
|
142 | | -### Service-specific `.env` files |
143 | | -- `apps/manage-api/.env` - Manage API configuration |
144 | | -- `apps/run-api/.env` - Run API configuration |
145 | | -- `src/<project-id>/.env` - CLI configuration |
| 63 | + |
146 | 64 |
|
147 | | -## Learn More |
| 65 | +### Next steps |
148 | 66 |
|
149 | | -- 📚 [Documentation](https://docs.inkeep.com) |
| 67 | +- Learn about [inkeep push / pull](https://docs.inkeep.com/get-started/push-pull) so you can go from `SDK -> Visual Builder` and `Visual Builder -> SDK`. |
| 68 | +- Follow our [meeting prep agent tutorial](https://docs.inkeep.com/tutorials/agents/meeting-prep-assistant) to create an agent using the Visual Builder. |
| 69 | +- Follow our [fact finder agent tutorial](https://docs.inkeep.com/tutorials/agents/fact-finder) to create an agent using the TypeScript SDK. |
| 70 | +- Install the [Inkeep MCP](https://docs.inkeep.com/get-started/inkeep-mcp) in your IDE to enable AI coding assistants to "vibe code" your Inkeep agents. |
0 commit comments