Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Contributing

Contributions are welcome! To contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes with clear, descriptive commit messages.
  4. Push your branch to your fork.
  5. Open a pull request explaining your changes.

Please ensure your code follows the existing style and includes tests if applicable.

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

Releases

Packages

Contributors

Languages