Skip to content

unitof/vc-ship25-agentsworkshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 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 to this project are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature-name).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/your-feature-name).
  5. Open a Pull Request describing your changes.

Please ensure your code follows the existing style and includes tests where applicable. For any questions or issues, please open an issue on GitHub.

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

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%