Skip to content

Logan1x/task-agent

Repository files navigation

Task Agent (Vercel AI SDK)

Basic AI agent with tool calls for task management.

Features

  • Add tasks with natural language
  • List all/open/completed tasks
  • Complete tasks by ID
  • Server-side tool execution with Vercel AI SDK

Setup

  1. Install dependencies:
npm install
  1. Create an environment file:
cp .env.example .env.local
  1. Add your OpenRouter API key in .env.local:
OPENROUTER_API_KEY=your_api_key_here
# optional (defaults to openai/gpt-4o-mini for lower latency)
OPENROUTER_MODEL=openai/gpt-4o-mini
  1. Run the app:
npm run dev

Open http://localhost:3000.

Example prompts

  • Add task buy milk
  • Add task finish project notes
  • Show my open tasks
  • Complete task 1

Notes

  • Tasks are stored in memory for MVP simplicity.
  • Data resets when the server restarts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors