Get started in the dashboard
Follow this guide to create a Workers AI application using the Cloudflare dashboard.
Prerequisites
Sign up for a Cloudflare account if you have not already.
Setup
To create a Workers AI application:
- Log in to the Cloudflare dashboard and select your account.
- Go to Workers & Pages.
- Select Create application.
- Under Create using a template, select LLM App. After you select your template, an AI binding will be created for you in the dashboard.
- Review the provided code and select Deploy.
- Preview your Worker at its provided
workers.dev
subdomain.
Development
Dashboard
Editing in the dashboard is helpful for simpler use cases.
Once you have created your Worker script, you can edit and deploy your Worker using the Cloudflare dashboard:
- Log in to the Cloudflare dashboard and select your account.
- Select Workers & Pages.
- Select your application.
- Select Edit Code.
Wrangler CLI
To develop more advanced applications or implement tests, start working in the Wrangler CLI.
- Run the following command, replacing the value of
[<DIRECTORY>]
which the location you want to put your Worker Script.
$ npm create cloudflare [<DIRECTORY>] -- --type=pre-existing
$ yarn create cloudflare [<DIRECTORY>] --type=pre-existing
$ pnpm create cloudflare [<DIRECTORY>] --type=pre-existing
$ bun create cloudflare [<DIRECTORY>] --type=pre-existing
After you run this command - and work through the prompts - your local changes will not automatically sync with dashboard. So, once you download your script, continue using the CLI.