Skip to content

JimStroomberg/OpenAI-Assistant-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

OpenAI Assistant Tools 🛠️

Small, version‑controlled helpers for working with OpenAI Assistants — the API‑first cousins of “Custom GPTs”.

  • export-assistant.py – Export any Assistant’s full configuration by ID or name and write it to friendly‑assistant‑name.json (slug‑ified) for easy diffing.

Features

Script What it does Highlights
export-assistant.py Dump an Assistant’s JSON by ID asst_… or name. Auto‑selects output filename: my‑helper‑bot.json (slug) or falls back to asst_xxx.json. Prompts for OPENAI_API_KEY if it’s not set and saves it to .env.

Requirements

  • Python 3.9 +
  • openai ≥ 1.25
  • python-dotenv
pip install openai python-dotenv

Setup

  1. Clone the repo

    git clone https://github.com/your‑username/openai-assistant-tools.git
    cd OpenAI‑assistant-tools/GPTs
  2. Add your OpenAI key

    Either create a .env file:

    OPENAI_API_KEY=sk‑your-secret-key

    or simply run the script once; it will ask for the key and store it for you.


Usage

# Export by ID
python export-assistant.py asst_abc123…

# Export by name (case‑insensitive exact match)
python export-assistant.py -n "Email Helper"

# Choose an explicit output file
python export-assistant.py asst_abc123… -o legacy.json

If you omit -o, the script writes
email-helper.json (slug‑ified) or asst_abc123….json.


Project structure

OpenAI-Assistant-tools/
├── export-assistant.py      # export by ID or name
└── README.md                # this file

Author’s note

I built these scripts to streamline my own workflow, if they save you time too, enjoy!

Roadmap (or just ideas idk)

  • Add bulk‑export utility for all Assistants in an org
  • Detect & warn if an Assistant uses deprecated tools
  • Switch to the new Responses API once GA
  • Create Assistant script.

License

MIT License

Copyright (c) 2025 Jim Stroomberg

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Disclaimer

This project is an independent open‑source effort and is not affiliated with, endorsed by, or sponsored by OpenAI.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages