• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
project logo

templates

openai-agents

Template to use the OpenAI Agents SDK
Public
Like
openai-agents
Home
Code
3
README.md
H
main.ts
test.ts
Branches
4
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
11/20/2025
README.md

OpenAI Agents Template

A Val Town template for creating HTTP endpoints powered by the OpenAI Agents SDK.

Get Started

  1. Remix this val

  2. Set the OPENAI_API_KEY environment variable. Get your OpenAI API key here: https://platform.openai.com/api-keys

  3. Customize your agent: Edit the agent configuration in main.ts. You can provide custom instructions, choose a different model, or add custom tools.

  4. Use your agent:

    Send POST requests to your val endpoint:

    curl -X POST https://openai-agents.val.run \ -H "Content-Type: application/json" \ -d '{"message": "Tell me about severe weather events"}'

Learn More

  • OpenAI Agents SDK Documentation
  • OpenAI Agents Quickstart
  • Val Town Documentation
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.