Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI SDK 5 Coding Agent Starter Project

Starter project for Vercel Ship "Building agents with the AI SDK". This coding agent is built with AI SDK 5, Vercel AI Gateway, and Vercel Sandbox. It can read and modify GitHub repositories.

Setup

Deploy with Vercel

  1. Install the Vercel CLI: npm i -g vercel
  2. Deploy this repo with the button above.
  3. Clone the new repo locally.
  4. Link to Vercel project: vercel link
  5. Pull environment variables: vercel env pull (may need team/project IDs too)
  6. Install dependencies: pnpm install
  7. Start dev server: vercel dev

Environment Variables

  • VERCEL_OIDC_TOKEN - For AI Gateway and Sandbox (this will be automatically added when you run vercel dev)
  • GITHUB_TOKEN - GitHub personal access token

GitHub Personal Access Token

To create a GitHub Personal Access Token (PAT):

  1. Go to https://github.com/settings/personal-access-tokens
  2. Click "Generate new token"
  3. Give it a descriptive name
  4. Set repository access to "All repositories"
  5. Add the following repository permissions:
    • Issues: Read and write
    • Pull requests: Read and write
  6. Click "Generate token"
  7. Copy the token immediately (you won't be able to see it again)
  8. Add it to your .env.local file as GITHUB_TOKEN

Usage

curl -X POST https://your-deployment.vercel.app/api/agent \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "update readme to say hey were so back",
    "repoUrl": "https://github.com/nicoalbanese/ai-sdk-langgraph/"
  }'

Parameters:

  • prompt - What you want the agent to do
  • repoUrl - GitHub repository URL

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages