Self hosting

Vercel

Copy page

Deploy the Inkeep Agent Framework to Vercel

Deploy to Vercel

Step 1: Create a GitHub repository for your project

If you do not have an Inkeep project already, follow these steps to create one. Then push your project to a reposistory on GitHub.

Step 2: Create a Turso Database

Create a Turso database on Vercel Marketplace or directly at Turso Cloud.

Step 3: Save your Turso Database URL and Auth Token

Create a token for your database, and then save the URL and token created.

TURSO_DATABASE_URL=
TURSO_AUTH_TOKEN=

Step 4: Create a Vercel account

Sign up for a Vercel account here.

Step 5: Create a Vercel project for Manage API

Vercel New Project - Manage API

Note
Note

The Framework Preset should be "Hono" and the Root Directory should be apps/manage-api.

Required environment variables for Manage API:

ENVIRONMENT=production

INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET=

TURSO_DATABASE_URL=
TURSO_AUTH_TOKEN=

NANGO_SECRET_KEY=
NANGO_SERVER_URL=https://api.nango.dev
Environment VariableValue
ENVIRONMENTproduction
INKEEP_AGENTS_MANAGE_API_BYPASS_SECRETRun openssl rand -hex 32 in your terminal to generate this value. Save this value for INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET in Step 7.
TURSO_DATABASE_URLTurso database URL you saved from Step 3
TURSO_AUTH_TOKENTurso auth token you saved from Step 3
NANGO_SECRET_KEYNango secret key from your Nango cloud account. Note: Local Nango setup won't work with Vercel deployments.
NANGO_SERVER_URLhttps://api.nango.dev

Step 6: Create a Vercel project for Run API

Vercel New Project - Run API

Note
Note

The Framework Preset should be "Hono" and the Root Directory should be apps/run-api.

Required environment variables for Run API:

ENVIRONMENT=production

ANTHROPIC_API_KEY=
OPENAI_API_KEY=
GOOGLE_GENERATIVE_AI_API_KEY=

INKEEP_AGENTS_RUN_API_BYPASS_SECRET=

TURSO_DATABASE_URL=
TURSO_AUTH_TOKEN=

OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://ingest.us.signoz.cloud:443/v1/traces
OTEL_EXPORTER_OTLP_TRACES_HEADERS=signoz-ingestion-key=<your-ingestion-key>

NANGO_SECRET_KEY=
NANGO_SERVER_URL=https://api.nango.dev
Environment VariableValue
ENVIRONMENTproduction
ANTHROPIC_API_KEYYour Anthropic API key
OPENAI_API_KEYYour OpenAI API key
GOOGLE_GENERATIVE_AI_API_KEYYour Google Gemini API key
INKEEP_AGENTS_RUN_API_BYPASS_SECRETRun openssl rand -hex 32 in your terminal to generate this value. Save this value for INKEEP_AGENTS_RUN_API_BYPASS_SECRET in Step 7.
TURSO_DATABASE_URLTurso database URL you saved from Step 3
TURSO_AUTH_TOKENTurso auth token you saved from Step 3
NANGO_SECRET_KEYNango secret key from your Nango cloud account. Note: Local Nango setup won't work with Vercel deployments.
OTEL_EXPORTER_OTLP_TRACES_ENDPOINThttps://ingest.us.signoz.cloud:443/v1/traces
OTEL_EXPORTER_OTLP_TRACES_HEADERSsignoz-ingestion-key=<your-ingestion-key>. Use the instructions from SigNoz Cloud Setup to configure your ingestion key. Note: Local SigNoz setup won't work with Vercel deployments.
NANGO_SERVER_URLhttps://api.nango.dev

Step 7: Create a Vercel project for Manage UI

Vercel New Project - Manage UI

Note
Note

The Framework Preset should be "Next.js" and the Root Directory should be apps/manage-ui.

Required environment variables for Manage UI:

ENVIRONMENT=production

INKEEP_AGENTS_MANAGE_API_URL=
INKEEP_AGENTS_RUN_API_URL=

INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET=
INKEEP_AGENTS_RUN_API_BYPASS_SECRET=

SIGNOZ_URL=https://<your-organization>.signoz.cloud
SIGNOZ_API_KEY=

NANGO_SECRET_KEY=
NANGO_SERVER_URL=https://api.nango.dev
Environment VariableValue
ENVIRONMENTproduction
INKEEP_AGENTS_MANAGE_API_URLYour Vercel deployment URL for Manage API
INKEEP_AGENTS_RUN_API_URLYour Vercel deployment URL for Run API
INKEEP_AGENTS_MANAGE_API_BYPASS_SECRETYour generated Manage API bypass secret from Step 5
INKEEP_AGENTS_RUN_API_BYPASS_SECRETYour generated Run API bypass secret from Step 6
SIGNOZ_URLUse the instructions from SigNoz Cloud Setup to configure your SigNoz URL. Note: Local SigNoz setup won't work with Vercel deployments.
SIGNOZ_API_KEYUse the instructions from SigNoz Cloud Setup to configure your SigNoz API key. Note: Local SigNoz setup won't work with Vercel deployments.
NANGO_SECRET_KEYNango secret key from your Nango cloud account. Note: Local Nango setup won't work with Vercel deployments.
NANGO_SERVER_URLhttps://api.nango.dev

Step 8: Enable Vercel Authentication

To prevent anyone from being able to access the UI, we recommend enabling Vercel authentication for all deployments: Settings > Deployment Protection > Vercel Authentication > All Deployments.

Push your graph

Step 1: Configure your root .env file

INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET=
INKEEP_AGENTS_RUN_API_BYPASS_SECRET=

Step 2: Create a cloud configuration file

Create a new configuration file named inkeep-cloud.config.ts in your project's src directory, alongside your existing configuration file.

import { defineConfig } from '@inkeep/agents-cli/config';

const config = defineConfig({
  tenantId: "default",
  agentsManageApi: {
    url: 'https://<your-manage-api-url>',
    apiKey: process.env.INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET,
  },
  agentsRunApi: {
    url: 'https://<your-run-api-url>',
    apiKey: process.env.INKEEP_AGENTS_RUN_API_BYPASS_SECRET,
  },
});
    
export default config;

Step 3: Push your graph

cd /src/<your-project-directory>
inkeep push --config ../inkeep-cloud.config.ts

Pull your graph

cd /src
inkeep pull --config inkeep-cloud.config.ts