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 tofriendly‑assistant‑name.json(slug‑ified) for easy diffing.
| 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. |
- Python 3.9 +
openai≥ 1.25python-dotenv
pip install openai python-dotenv-
Clone the repo
git clone https://github.com/your‑username/openai-assistant-tools.git cd OpenAI‑assistant-tools/GPTs -
Add your OpenAI key
Either create a
.envfile:OPENAI_API_KEY=sk‑your-secret-key
or simply run the script once; it will ask for the key and store it for you.
# 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.jsonIf you omit -o, the script writes
email-helper.json (slug‑ified) or asst_abc123….json.
OpenAI-Assistant-tools/
├── export-assistant.py # export by ID or name
└── README.md # this file
I built these scripts to streamline my own workflow, if they save you time too, enjoy!
- 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.
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.
This project is an independent open‑source effort and is not affiliated with, endorsed by, or sponsored by OpenAI.