ai4Gauss — Gaussian Input File Generator
Describe your computational job in one sentence; get a properly formatted Gaussian input file (
.gjf).
ai4Gauss is a small tkinter desktop application for people who run quantum chemistry
calculations. You describe the job in plain English, an LLM writes the Gaussian route section,
and the program combines it with the atomic coordinates taken from an existing .gjf file and
with your server parameters (%nproc / %mem) into a complete, ready-to-submit input file.
Zero dependencies — Python standard library only. No bundled credentials — you supply your own OpenAI-compatible API key, and requests go straight from your machine to the endpoint you configured.
Installation
pip install ai4gauss
Then launch it:
ai4gauss
or, equivalently:
python -m ai4gauss
Requirements: Python 3.8 or newer with tkinter enabled. tkinter ships with the official Windows and macOS installers, but on many Linux distributions it is a separate package:
sudo apt install python3-tk # Debian / Ubuntu
sudo dnf install python3-tkinter # Fedora / RHEL
A standalone Windows
.exe(no Python required) is available from the Releases page.
First run
Click ⚙ Open Settings… in the top-right panel and fill in:
| Field | What to enter |
|---|---|
%nproc / %mem |
CPU cores and memory written into the .gjf header, e.g. 36 / 60GB |
| API Key | Your own key for any OpenAI-compatible endpoint |
| Base URL | Must end in /v1, e.g. https://api.deepseek.com/v1 |
| Model name | e.g. deepseek-v4-flash |
No API key is bundled. Until you save one the status line stays red ("No API Key — open Settings to add your own ✗") and the program offers to open Settings for you at launch. Only Generate Keywords with AI needs a key — coordinate parsing and file generation work fully offline, and you can always type the route line yourself.
What it solves
- Nobody remembers route sections — B3LYP or M06-2X? Which pseudopotential? Let the model propose one, and tell you why;
- The trailing section is easy to get wrong —
output=wfnrequires the file name on its own line after the coordinate block;gen/genecprequire a basis-set definition block. Miss one line and Gaussian stops with an error; - Copy-pasting coordinates by hand is error-prone — charge, multiplicity and 8-decimal formatting are easy to get wrong at 6 p.m.
Features
| Feature | Description |
|---|---|
| Two-step keyword generation | Step 1 turns your description into the route line plus the reasoning behind it; step 2, given that route line, decides the trailing section (e.g. the .wfn file name required by output=wfn, or a gen/genecp block) |
| Consistency check | Route and trailing section are cross-checked and obvious gaps filled automatically; every fix or warning is logged. gen/genecp with an empty block is reported instead of guessed |
| Coordinate extraction | Reads charge/multiplicity and all atomic coordinates from an existing .gjf, reformatted to the standard 8-decimal layout; connectivity blocks are dropped on purpose |
| Never overwrites | Output names carry a date suffix (input1_20260920.gjf) |
| Self-contained dialogs | Custom-drawn message boxes with fixed English buttons, so the interface does not change with the system language |
| Zero dependencies | Standard library only (tkinter / urllib / json / re) |
| No bundled credentials | Nothing is routed through a third-party server |
Where your files go
Because an installed package lives inside site-packages — normally not writable, and wiped by
pip install -U — user data is written to the standard per-user location instead:
| Platform | Folder |
|---|---|
| Windows | %APPDATA%\ai4Gauss |
| Linux / macOS | ~/.config/ai4Gauss |
| File | Contents |
|---|---|
ai4Gauss_en_config.json |
nproc / mem / your API key / base URL / model |
keywords.txt |
Timestamped log of every route line the AI produced |
<timestamp>.log |
Full run log, saved when you close the window |
Set the AI4GAUSS_HOME environment variable to force a different folder. The built-in Windows
.exe keeps writing next to the executable, so it stays portable.
The working directory shown in the interface defaults to the folder you started the program from, so generated files land where you expect.
Documentation and examples
The full user guide, a step-by-step quick start, a build script for making your own .exe, and
two worked examples (an output=wfn job and a genecp job, both produced by this program against
a real model) live in the repository:
FAQ
Does it need the internet? Only Generate Keywords with AI does. Coordinate parsing, parameter entry and file generation all work offline.
Is my API key safe?
It is written in plain text to ai4Gauss_en_config.json in the folder shown above, and is only
ever sent to the endpoint you configured. Keep that file to yourself.
Why does the AI suggest such an expensive level of theory? It is a suggestion, not a peer-reviewed protocol. Read the rationale in the run log, then edit the route line by hand — the extra section can be re-derived from it with Infer from route.
Windows flags the .exe as malicious. A well-known false positive for PyInstaller single-file builds; add it to your trusted list.
Known limitations
- The UI uses native tkinter widgets and has only been tested on Windows;
- Non-ASCII (e.g. Chinese) file names cause trouble for wavefunction/checkpoint files; the program falls back to ASCII names automatically;
gen/genecpbasis-set blocks are model-generated — always review them before submitting;- This build generates one file at a time. The Chinese build additionally offers batch
generation over every
.gjfin the working directory, and keeps its AI prompt in an externalsystem_promptfield; this build keeps its prompts in the source.
License
CC BY-NC 4.0 — free to use, modify and share with attribution, no commercial use. Study, research and teaching require no permission.
Note that this is not an OSI-approved licence, which is why the package reports it as a non-standard licence.
Contact
Developer: chuan437 · Email: wangchuan437@126.com
Issues, feature requests and "the keywords look wrong" reports are all welcome at https://github.com/wangchuan437/ai4Gauss-EN/issues.
Metadata
Release files for ai4gauss 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ai4gauss-1.0.0.tar.gz | 70.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai4gauss-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 134.7 kB
Release files / ai4gauss-1.0.0.tar.gz
| Download URL | ai4gauss-1.0.0.tar.gz |
|---|---|
| Size | 70.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3790a9c4ef87995a298054f2b530416f0936b452bbb63508b36f80138f3a7843
|
|
BLAKE2b-256 checksum How to use checksums |
db9ff0430aadd1715ef397c0dcdb768593c10ee180d2f88f979c4295e5495c35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Release files / ai4gauss-1.0.0-py3-none-any.whl
| Download URL | ai4gauss-1.0.0-py3-none-any.whl |
|---|---|
| Size | 64.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e61fe2cc5c310aac8bd9826634e9f838bcf163f65c908c202e71dcff70693e65
|
|
BLAKE2b-256 checksum How to use checksums |
8d89d44feb739ab72fe70f006eb5d7c59f6b08b2d5292bd70568c818a351002d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|