https://github.com/openai/openai-responses-starter-app
Starter app to build with the OpenAI Responses API
https://github.com/openai/openai-responses-starter-app
Last synced: 5 months ago
JSON representation
Starter app to build with the OpenAI Responses API
- Host: GitHub
- URL: https://github.com/openai/openai-responses-starter-app
- Owner: openai
- License: other
- Created: 2025-03-11T14:29:27.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-04-25T15:02:14.000Z (5 months ago)
- Last Synced: 2025-05-08T20:49:36.603Z (5 months ago)
- Language: TypeScript
- Size: 170 KB
- Stars: 260
- Watchers: 9
- Forks: 80
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ChatGPT-repositories - openai-responses-starter-app - Starter app to build with the OpenAI Responses API (Openai)
README
# Responses starter app
[](LICENSE)

This repository contains a NextJS starter app built on top of the [Responses API](https://platform.openai.com/docs/api-reference/responses).
It leverages built-in tools ([web search](https://platform.openai.com/docs/guides/tools-web-search?api-mode=responses) and [file search](https://platform.openai.com/docs/guides/tools-file-search)) and implements a chat interface with multi-turn conversation handling.Features:
- Multi-turn conversation handling
- Web search tool configuration
- Vector store creation & file upload for use with the file search tool
- Function calling
- Streaming responses & tool calls
- Display annotationsThis app is meant to be used as a starting point to build a conversational assistant that you can customize to your needs.
## How to use
1. **Set up the OpenAI API:**
- If you're new to the OpenAI API, [sign up for an account](https://platform.openai.com/signup).
- Follow the [Quickstart](https://platform.openai.com/docs/quickstart) to retrieve your API key.2. **Set the OpenAI API key:**
2 options:
- Set the `OPENAI_API_KEY` environment variable [globally in your system](https://platform.openai.com/docs/libraries#create-and-export-an-api-key)
- Set the `OPENAI_API_KEY` environment variable in the project: Create a `.env` file at the root of the project and add the following line (see `.env.example` for reference):```bash
OPENAI_API_KEY=
```3. **Clone the Repository:**
```bash
git clone https://github.com/openai/openai-responses-starter-app.git
```4. **Install dependencies:**
Run in the project root:
```bash
npm install
```5. **Run the app:**
```bash
npm run dev
```The app will be available at [`http://localhost:3000`](http://localhost:3000).
## Contributing
You are welcome to open issues or submit PRs to improve this app, however, please note that we may not review all suggestions.
## License
This project is licensed under the MIT License. See the LICENSE file for details.