An end-to-end guide on how to self-host Agentset
Clone the repo
Install dependencies
Set up environment variables
.env.example
file to .env
. You can start filling in the first few environment variables:apps/web/src/lib/embeddings.ts
and apps/web/src/lib/llm.ts
to use a different provider.Create Upstash Redis database
Set up Upstash environment variables
UPSTASH_REDIS_REST_URL
and UPSTASH_REDIS_REST_TOKEN
from the REST API section into your .env
file as REDIS_URL
and REDIS_TOKEN
respectively.QSTASH_TOKEN
, QSTASH_CURRENT_SIGNING_KEY
, and QSTASH_NEXT_SIGNING_KEY
from the Request Builder section into your .env
file.REDIS_HOST
, REDIS_PORT
, and REDIS_PASSWORD
match the values in your
Upstash Redis database created in Step
2..env
file:
Create Supabase database
Set up Supabase environment variables
DATABASE_URL
and DIRECT_URL
into your .env
file. And make sure to replace [YOUR-PASSWORD]
with the password you wrote down in the previous step.Apply migrations
https://app.acme.com/api/auth/callback/github
http://localhost:3000/api/auth/callback/github
for local development.Client ID
and Client Secret
into your .env
file as the GITHUB_CLIENT_ID
and GITHUB_CLIENT_SECRET
environment variables.
Create Google OAuth App
Set up Google OAuth environment variables
Client ID
and Client Secret
into your .env
file as the GOOGLE_CLIENT_ID
and GOOGLE_CLIENT_SECRET
environment variables.Create R2 bucket
agentset
) and leaving the remaining settings as is.Set up access to R2
Access Key ID
and Secret Access Key
values – you’ll need them in the next step.Set up R2 environment variables
.env
file:.env
file as the RESEND_API_KEY
environment variable.Deploy code to GitHub
Create a new Vercel project
apps/web
..env
file by copying all of them and pasting it into the first input field. A few notes:BETTER_AUTH_URL
environment variable with the app domain that you will be using (e.g. https://app.acme.com
).No Output Directory called "public" was found after the build completed
error, make sure that your Vercel deployment
settings to make sure that they match the following:Done!
https://app.acme.com
) and see the following login page: