Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ kernel deploy index.ts # --env OPENAI_API_KEY=XXX if Stagehand; --env ANTHROPIC
kernel deploy main.py # --env OPENAI_API_KEY=XXX if Browser Use
```

If deploying an app that requires environment variables, make sure to [set them](https://docs.onkernel.com/launch/deploy#environment-variables) when you `deploy`.
If deploying an app that requires environment variables, make sure to [set them](https://onkernel.com/docs/launch/deploy#environment-variables) when you `deploy`.

5. Invoke your application:

Expand Down Expand Up @@ -157,7 +157,7 @@ These are the sample apps currently available when you run `npx @onkernel/create

For more information about Kernel and its features, visit:

- [Kernel Documentation](https://docs.onkernel.com/quickstart)
- [Kernel Documentation](https://onkernel.com/docs/quickstart)
- [Kernel Homepage](https://onkernel.com)

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion templates/python/browser-use/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This is a simple Kernel application that implements the Browser Use SDK.

See the [docs](https://docs.onkernel.com/build/browser-frameworks) for information.
See the [docs](https://onkernel.com/docs/build/browser-frameworks) for information.
2 changes: 1 addition & 1 deletion templates/python/browser-use/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TaskInput(TypedDict):
task: str

# LLM API Keys are set in the environment during `kernel deploy <filename> -e OPENAI_API_KEY=XXX`
# See https://docs.onkernel.com/launch/deploy#environment-variables
# See https://onkernel.com/docs/launch/deploy#environment-variables
llm = ChatOpenAI(model="gpt-4.1")

@app.action("bu-task")
Expand Down
2 changes: 1 addition & 1 deletion templates/python/computer-use/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ This is a simple Kernel application that implements a prompt loop using Anthropi

It generally follows the [Anthropic Reference Implementation](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo) but replaces `xodotool` and `gnome-screenshot` with Playwright.

See the [docs](https://docs.onkernel.com/quickstart) for information.
See the [docs](https://onkernel.com/docs/quickstart) for information.
2 changes: 1 addition & 1 deletion templates/python/cua/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ This is a Kernel application that demonstrates using the Computer Using Agent (C

It generally follows the [OpenAI CUA Sample App Reference](https://github.com/openai/openai-cua-sample-app) and uses Playwright via Kernel for browser automation.

See the [docs](https://docs.onkernel.com/quickstart) for more information.
See the [docs](https://onkernel.com/docs/quickstart) for more information.
2 changes: 1 addition & 1 deletion templates/python/sample-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This is a simple Kernel application that extracts the title from a webpage.

See the [docs](https://docs.onkernel.com/quickstart) for information.
See the [docs](https://onkernel.com/docs/quickstart) for information.
2 changes: 1 addition & 1 deletion templates/python/sample-app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def get_page_title(ctx: kernel.KernelContext, input_data: PageTitleInput)
"""
Example app that instantiates a persisted Kernel browser that can be reused across invocations
Invoke this action to test Kernel browsers manually with our browser live view
https://docs.onkernel.com/launch/browser-persistence
https://onkernel.com/docs/browsers/persistence
Args:
ctx: Kernel context containing invocation information
Returns:
Expand Down
2 changes: 1 addition & 1 deletion templates/typescript/computer-use/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ This is a simple Kernel application that implements a prompt loop using Anthropi

It generally follows the [Anthropic Reference Implementation](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo) but replaces `xodotool` and `gnome-screenshot` with Playwright.

See the [docs](https://docs.onkernel.com/quickstart) for information.
See the [docs](https://onkernel.com/docs/quickstart) for information.
12 changes: 6 additions & 6 deletions templates/typescript/computer-use/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface QueryOutput {
}

// LLM API Keys are set in the environment during `kernel deploy <filename> -e ANTHROPIC_API_KEY=XXX`
// See https://docs.onkernel.com/launch/deploy#environment-variables
// See https://onkernel.com/docs/launch/deploy#environment-variables
const ANTHROPIC_API_KEY = process.env.ANTHROPIC_API_KEY;

if (!ANTHROPIC_API_KEY) {
Expand Down Expand Up @@ -66,11 +66,11 @@ app.action<QueryInput, QueryOutput>(
throw new Error('Failed to get the last message from the sampling loop');
}

const result = typeof lastMessage.content === 'string'
? lastMessage.content
: lastMessage.content.map(block =>
block.type === 'text' ? block.text : ''
).join('');
const result = typeof lastMessage.content === 'string'
? lastMessage.content
: lastMessage.content.map(block =>
block.type === 'text' ? block.text : ''
).join('');

return { result };
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion templates/typescript/cua/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ This is a Kernel application that demonstrates using the Computer Using Agent (C
It generally follows the [OpenAI CUA Sample App Reference](https://github.com/openai/openai-cua-sample-app) and uses Playwright via Kernel for browser automation.
Also makes use of the latest OpenAI SDK format, and has local equivalent to Kernel methods for local testing before deploying on Kernel.

See the [docs](https://docs.onkernel.com/quickstart) for information.
See the [docs](https://onkernel.com/docs/quickstart) for information.
2 changes: 1 addition & 1 deletion templates/typescript/sample-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This is a simple Kernel application that extracts the title from a webpage.

See the [docs](https://docs.onkernel.com/quickstart) for information.
See the [docs](https://onkernel.com/docs/quickstart) for information.
2 changes: 1 addition & 1 deletion templates/typescript/sample-app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ app.action<PageTitleInput, PageTitleOutput>(
/**
* Example app that instantiates a persisted Kernel browser that can be reused across invocations
* Invoke this action to test Kernel browsers manually with our browser live view
* https://docs.onkernel.com/launch/browser-persistence
* https://onkernel.com/docs/browsers/persistence
* Args:
* ctx: Kernel context containing invocation information
* Returns:
Expand Down
2 changes: 1 addition & 1 deletion templates/typescript/stagehand/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This is a simple Kernel application that implements the Stagehand SDK.

See the [docs](https://docs.onkernel.com/quickstart) for information.
See the [docs](https://onkernel.com/docs/quickstart) for information.
2 changes: 1 addition & 1 deletion templates/typescript/stagehand/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface SearchQueryOutput {
}

// LLM API Keys are set in the environment during `kernel deploy <filename> -e OPENAI_API_KEY=XXX`
// See https://docs.onkernel.com/launch/deploy#environment-variables
// See https://onkernel.com/docs/launch/deploy#environment-variables
const OPENAI_API_KEY = process.env.OPENAI_API_KEY;

if (!OPENAI_API_KEY) {
Expand Down