whatisgithub

What is openai-agents-sdk-with-fireworks?

itsajchan/openai-agents-sdk-with-fireworks — explained in plain English

Analysis updated 2026-05-18

14PythonAudience · developerComplexity · 2/5Setup · easy

In one sentence

A small demo showing how to use OpenAI's Agents SDK and Responses API with Fireworks AI as the model provider instead of OpenAI itself.

Mindmap

mindmap
  root((openai-agents-sdk-with-fireworks))
    What it does
      Demos Agents SDK
      Calls Fireworks models
      Shows tool calling
    Tech stack
      Python
      OpenAI Agents SDK
      Fireworks AI
    Use cases
      Learn Agents SDK basics
      Swap in Fireworks models
      Avoid model prefix bug
    Audience
      Developers
      AI builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Learn how to point OpenAI's Agents SDK at a non-OpenAI model provider like Fireworks.

USE CASE 2

See a minimal example of calling Fireworks through an OpenAI-compatible Responses API.

USE CASE 3

Reuse the workaround for the Agents SDK misreading a model name that contains slashes.

What is it built with?

PythonOpenAI Agents SDKFireworks AI

How does it compare?

itsajchan/openai-agents-sdk-with-fireworks0c33/agentic-aiadennng/stock_strategy_lab
Stars141414
LanguagePythonPythonPython
Setup difficultyeasyhardhard
Complexity2/54/54/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Requires a Fireworks AI API key set as an environment variable before running the demos.

No license information is provided in the README.

So what is it?

This repository is a small demo project showing how to connect OpenAI's Agents SDK, a toolkit for building AI agents that can call functions, to Fireworks AI, a service that hosts large language models and offers them through an interface compatible with OpenAI's own API. It exists mainly as example code, not a full application. Two Python scripts make up the core demonstration. One creates a simple agent called FileLister that has access to a local function letting it list files, with Fireworks providing the actual model reasoning behind that agent. The other script shows a more minimal example, directly calling Fireworks through the Responses API format without wrapping it in an agent at all. A setup script is included to create a Python 3.12 virtual environment and install the required openai-agents package, and a plain HTML tic-tac-toe page is included as an unrelated standalone demo you can open directly in a browser. Before running either Python demo, you need a Fireworks API key, which you either paste directly into the script or, more safely, set as an environment variable so it is never committed to the repository. Both demos are pointed by default at a specific Fireworks-hosted model. The README calls out one specific technical gotcha: the Fireworks model name contains slashes, and if passed to the Agents SDK the normal way, the SDK misreads part of it as a provider prefix and throws an error. The demo works around this by building an explicit client object pointed at the Fireworks endpoint instead of passing the raw model string. The author reminds users not to commit real API keys, and to rotate any key immediately if one is ever accidentally saved into the project folder. No license is stated in the README.

Copy-paste prompts

Prompt 1
Walk me through setting up the virtual environment and running openai_agents_sdk.py in this repo.
Prompt 2
Explain why the Fireworks model name causes an Unknown prefix error in the Agents SDK, and how this repo fixes it.
Prompt 3
Show me how to set my FIREWORKS_API_KEY as an environment variable instead of hardcoding it.
Prompt 4
Help me adapt this FileLister agent example to call a different Fireworks-hosted model.

Frequently asked questions

What is openai-agents-sdk-with-fireworks?

A small demo showing how to use OpenAI's Agents SDK and Responses API with Fireworks AI as the model provider instead of OpenAI itself.

What language is openai-agents-sdk-with-fireworks written in?

Mainly Python. The stack also includes Python, OpenAI Agents SDK, Fireworks AI.

What license does openai-agents-sdk-with-fireworks use?

No license information is provided in the README.

How hard is openai-agents-sdk-with-fireworks to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is openai-agents-sdk-with-fireworks for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.