77 <a href =" https://x.com/rfgarcia " ><img src =" https://img.shields.io/twitter/follow/rfgarcia " alt =" Follow @rfgarcia " ></a >
88</p >
99
10- A CLI tool to create the scaffolding for a new Kernel applications. This tool helps you get started with building browser automation applications using Kernel's platform.
10+ A CLI tool to create the scaffolding for a new Kernel applications. This tool helps you get started with building browser automation applications using Kernel's platform.
1111
1212## Features
1313
@@ -52,30 +52,36 @@ create-kernel-app [app-name] [options]
5252### Examples
5353
5454Create a TypeScript application with a sample app:
55+
5556``` bash
5657npx @onkernel/create-kernel-app my-app --language typescript --template sample-app
5758```
5859
5960Create a Typescript application with Stagehand template:
61+
6062``` bash
6163npx @onkernel/create-kernel-app my-app --language typescript --template stagehand
6264```
6365
6466Create a Typescript application with Computer Use template:
67+
6568``` bash
6669npx @onkernel/create-kernel-app my-app --language typescript --template computer-use
6770```
6871
6972Create a Python application with a sample app:
73+
7074``` bash
7175npx @onkernel/create-kernel-app my-app --language python --template sample-app
7276```
7377
7478Create a Python application with Browser Use template:
79+
7580``` bash
7681npx @onkernel/create-kernel-app my-app --language python --template browser-use
7782```
78- ```
83+
84+ ````
7985
8086## Next Steps
8187
@@ -84,18 +90,21 @@ After creating your application:
84901. Navigate to your project directory:
8591```bash
8692cd my-app
87- ```
93+ ````
8894
89952 . Set up your environment:
96+
9097- For TypeScript: ` npm install `
9198- For Python: ` uv venv && source .venv/bin/activate && uv sync `
9299
931003 . Set your Kernel API key:
101+
94102``` bash
95- export KERNEL_API_KEY=< YOUR_API_KEY>
103+ kernel login # or: export KERNEL_API_KEY=<YOUR_API_KEY>
96104```
97105
981064 . Deploy your application:
107+
99108``` bash
100109# Typscript
101110kernel deploy index.ts # --env OPENAI_API_KEY=XXX if Stagehand; --env ANTHROPIC_API_KEY=XXX if Computer Use
@@ -107,6 +116,7 @@ kernel deploy main.py # --env OPENAI_API_KEY=XXX if Browser Use
107116If deploying an app that requires environment variables, make sure to [ set them] ( https://docs.onkernel.com/launch/deploy#environment-variables ) when you ` deploy ` .
108117
1091185 . Invoke your application:
119+
110120``` bash
111121# Typescript + Sample App
112122kernel invoke ts-basic get-page-title --payload ' {"url": "https://www.google.com"}'
@@ -134,18 +144,19 @@ kernel invoke python-cua cua-task --payload '{"task": "Get current market price
134144
135145These are the sample apps currently available when you run ` npx @onkernel/create-kernel-app ` :
136146
137- | Template | Description | Framework | Query Parameters |
138- | ----------| -------------| -----------| ------------------|
139- | ** sample-app** | Returns the page title of a specified URL | Playwright | ` { url } ` |
140- | ** browser-use** | Completes a specified task | Browser Use | ` { task } ` |
141- | ** stagehand** | Returns the first result of a specified Google search | Stagehand | ` { query } ` |
142- | ** advanced-sample** | Implements sample apps using advanced Kernel configs | n/a |
143- | ** computer-use** | Implements a prompt loop | Anthropic Computer Use API | ` { query } ` |
144- | ** cua** | Implements the OpenAI Computer Using Agent (CUA) | OpenAI CUA | ` { task } ` |
147+ | Template | Description | Framework | Query Parameters |
148+ | ------------------- | ----------------------------------------------------- | -------------------------- | ---------------- |
149+ | ** sample-app** | Returns the page title of a specified URL | Playwright | ` { url } ` |
150+ | ** browser-use** | Completes a specified task | Browser Use | ` { task } ` |
151+ | ** stagehand** | Returns the first result of a specified Google search | Stagehand | ` { query } ` |
152+ | ** advanced-sample** | Implements sample apps using advanced Kernel configs | n/a |
153+ | ** computer-use** | Implements a prompt loop | Anthropic Computer Use API | ` { query } ` |
154+ | ** cua** | Implements the OpenAI Computer Using Agent (CUA) | OpenAI CUA | ` { task } ` |
145155
146156## Documentation
147157
148158For more information about Kernel and its features, visit:
159+
149160- [ Kernel Documentation] ( https://docs.onkernel.com/quickstart )
150161- [ Kernel Homepage] ( https://onkernel.com )
151162
@@ -156,4 +167,3 @@ Contributions are welcome! Please feel free to submit a pull request. See [Contr
156167## License
157168
158169MIT © [ Kernel] ( https://onkernel.com )
159-
0 commit comments