Skip to content
Abstracts due Jan 1512th International BCI MeetingŠibenik, Croatia • Jun 7–10, 2027

Compute

Free compute for neuroscience: the Neuroscience Gateway

The Neuroscience Gateway (NSG) gives neuroscientists time on supercomputers, free for academic and non-profit users. You send your code and settings, NSG runs the job and hands back the results. This page explains what NSG offers, how to get access, and how nsg-agent-kit, a NeuroTechX project, helps people and AI agents use it.

Facts checked on the NSG, SDSC and NEMAR pages on 26 November 2026.

What NSG is

The Neuroscience Gateway is a science gateway: a web portal and a REST API that send neuroscience jobs to high-performance computing resources. It has been in production since December 2012.

It is run by the San Diego Supercomputer Center (SDSC) at UC San Diego, in collaboration with Yale University and University College London. The team is led by Amit Majumdar (SDSC, principal investigator), with Subhashini Sivagnanam (SDSC) and Ted Carnevale (Yale) as co-investigators.

NSG is funded by current and past grants from the US National Science Foundation (NSF), the US National Institutes of Health (NIH) and the UK Biotechnology and Biological Sciences Research Council (BBSRC). The computer time comes from a yearly allocation that the NSG team wins through ACCESS, the NSF programme that shares out time on its supercomputers. NSG then shares that time among its users.

At a glance

Who can use it
Anyone doing neuroscience research or education, from any country: researchers at academic and non-profit institutions, students, educators and industry researchers.
What it costs
Nothing for users at academic and non-profit institutions. Companies should write to nsghelp@sdsc.edu about the conditions; NSG's policy asks industry users to publish their results in open journals.
How much compute
The starting limit is 20,000 core hours a year. You can ask for more based on your needs. NSG gives each user a fair share of its allocation: it is not unlimited.
For courses
NSG encourages use in classes and workshops. Write to nsghelp@sdsc.edu well before the course starts.

If NSG helps your work, cite it. NSG asks you to cite Sivagnanam et al. (2013), "Introducing the Neuroscience Gateway", and the EEGLAB portal paper if you used EEGLAB through NSG. NSG's funding depends in part on the publications that cite it.

What runs on NSG

On NSG each piece of software is a pre-installed "tool". You pick the tool, send your code, and NSG runs the job. These are the tools on the portal's public list, grouped by use. Versions are the ones the portal shows.

Neuron and network simulation

  • NEURON 8.2.2 and CoreNEURON 8.2.3
  • HNN (Human Neocortical Neurosolver) 0.6.1, with or without its GUI
  • PGENESIS 2.4 (parallel GENESIS)
  • BluePyOpt (model optimisation)
  • Python on Expanse 3.11.4, with BMTK, Brian 2, DEAP, HNN-Core, NetPyNE, PyNN and NEST

Data analysis

  • EEGLAB and AMICA (adaptive mixture ICA)
  • MATLAB 2020B
  • FreeSurfer 7.1.1 and MRtrix 3.0.3 (Neurodesk build) for MRI
  • SpikeInterface 0.101.0 for spike sorting
  • NIC Converter, NIC Correlator and NIC TDA

Machine learning on GPUs

  • PyTorch Python on Expanse (2.0.1+cu117)
  • TensorFlow Python on Expanse, and a version on the Open Science Grid
  • Python on Expanse GPU
  • HiAER-Spike, FPGA-accelerated Python

Missing a package? NSG takes software requests at nsghelp@sdsc.edu. NSG portal: list of tools

The hardware

The tools run on Expanse, an SDSC supercomputer. According to SDSC's Expanse page, each of its GPU nodes carries four NVIDIA V100 SXM2 GPUs with 32 GB each, and its standard nodes have 128 AMD EPYC cores. For input or output files over 5 GB, NSG offers Globus transfers on request.

Data already there: NEMAR

NEMAR is an open-access data, tools and compute resource for human EEG, MEG, intracranial EEG and EMG, including a mirror of OpenNeuro's data, in BIDS format. Its home page listed 910 datasets on 26 November 2026.

NEMAR was built to work with NSG: you pick a dataset in NEMAR, then process it on SDSC resources through NSG (Delorme et al., 2022). Inside an NSG job, the OpenNeuro mirror is read from the folder in the NEMARPATH variable, read-only. There is nothing to download.

To find a dataset, search nemar.org or openneuro.org; each dataset has an id made of ds and six digits. The nsg-agent-kit search scripts query OpenNeuro's public API from your own computer, in seconds, without an NSG job.

nemar.org openneuro.org

Getting access

  1. 1. Create an account

    On the NSG portal's login page, fill in the new-user form, then read and accept the usage policy. The NSG team approves the account.

  2. 2. Choose: portal or API

    The web portal is enough to start: you upload a zip of your code, create a task, pick the tool and settings, then download the results. The REST API, NSG-R, is for automation: scripts, parameter sweeps, agents.

  3. 3. For the API: an application key

    In the portal, open the Developer menu, then Application Management, and create an application of type DIRECT. The portal shows an Application ID. Each request sends your username and password with HTTP Basic authentication, plus that ID in the cipres-appkey header.

Open the NSG portal The sign-up form is on the login page.

Rules to follow

  • De-identified data only. Human-subject data must be de-identified before it is transferred to NSG, and your institution's ethics board requirements apply.
  • Compute time is shared among all users. Batch your jobs and justify large sweeps.
  • Data in an account unused for a year may be deleted after a notice.

Your credentials

Never put your password in a repository, a notebook or a chat with an AI. The examples on this page use placeholder values. Create one application key per project or agent: each key can be regenerated on its own if it leaks. If a request fails with a certificate error, do not turn off certificate checks; write to nsghelp@sdsc.edu instead.

nsg-agent-kit

By Morgan Hough, Executive Director of NeuroTechX. MIT licence.

nsg-agent-kit collects what you need to go from an NSG account to a first job on a GPU, and then to real projects. It is written for people and for AI agents that drive NSG through its API.

View the repository on GitHub

What is in it

nsgr.sh
A small wrapper around curl to submit a job, list your jobs, check their status and fetch the results. Credentials come from environment variables.
Templates and examples
Zip templates for PyTorch on GPU, Python on CPU and NEMAR EEG, and complete examples with tests that turn green when the results come back.
NEMAR search
Scripts to find a dataset by keyword, BIDS task, modality or number of participants, and to check what it holds, without spending an NSG job.
Agent skills
Three agent skills, nemar-search, nemar-inspect and nemar-job, that describe each step: search, check, then run the job on Expanse.
Documented constraints
What to know before porting real code: the Python environment is read-only, versions are fixed, jobs keep nothing between runs. Each fact is dated.
OpenEEGBench at scale
A planner and a driver that split the OpenEEGBench benchmark into NSG jobs and collect the results.

Quickstart

These commands come from the repository's README. Replace the placeholder values with your own in nsgr/config.env, a file git ignores.

  1. 1. Clone the repository and copy the config file:

    git clone https://github.com/NeuroTechX/nsg-agent-kit && cd nsg-agent-kit
    cp nsgr/config.example.env nsgr/config.env
  2. 2. In nsgr/config.env, fill in your username and your Application ID:

    export NSG_URL="https://nsgr.sdsc.edu:8443/cipresrest/v1"
    export NSG_USER="your_nsg_username"
    export NSG_APPKEY="your_application_id"
    export NSG_TOOL="PYTORCH_PY_EXPANSE"
  3. 3. Keep the password out of the repository, in a file only you can read:

    umask 077; read -rsp "NSG password: " P; printf 'export NSG_PASSWORD=%q\n' "$P" > ~/.nsg_secret.env; unset P
  4. 4. Check access. An HTTP 200 reply with a <joblist> tag means it works:

    source nsgr/config.env; source ~/.nsg_secret.env
    curl -sS -u "$NSG_USER:$NSG_PASSWORD" -H "cipres-appkey:$NSG_APPKEY" "$NSG_URL/job/$NSG_USER"
  5. 5. Build the small example (a frozen encoder on simulated EEG, about 2 minutes on a V100), submit it, then fetch the results:

    cd probes/reve_frozen_probe && ./make_zip.sh && cd ../..
    ./nsgr/nsgr.sh submit PYTORCH_PY_EXPANSE probes/reve_frozen_probe/reve_frozen_probe.zip
    ./nsgr/nsgr.sh list
    ./nsgr/nsgr.sh fetch <jobhandle> probes/reve_frozen_probe/results/
    pytest probes/tests -q
  6. 6. Search NEMAR datasets from your own computer:

    python scripts/nemar_search.py --kw "motor imagery" --modality eeg --min-subjects 10
    python scripts/nemar_inspect.py ds002718

Prefer clicking? The same zip can be submitted through the portal; the submit-portal.md guide walks through each screen.

Documentation

Ideas for NeuroTechX members

Practical projects where a laptop is no longer enough.

The Learn labs at full scale

The scripts that build the Learn labs are in the scripts/ folder of the website's repository. The HD-EEG lab script processes a single participant of ds005505 (HBN-EEG Release 1), a dataset NEMAR lists: running the same steps for every participant is a good first NSG job. The OPM-MEG lab script fits a hidden Markov model; you can compare several random seeds in parallel. The Kernel Flow2 fNIRS lab script reads ds005927, which NEMAR does not list: bring it in the zip, or through Globus if it is over 5 GB.

Benchmarks

Compare EEG models on the same data: OpenEEGBench with the kit's driver, or MOABB comparisons. Publish the code and versions so others can redo the computation.

Student club projects

Each member opens their own account. A club can simulate networks with NEURON, NetPyNE or HNN, or train a small decoder on a NEMAR dataset. For a course, tell NSG ahead of time.

Hackathon compute

Have accounts created before the event, since they need approval. Test the kit's example beforehand: a job takes at least a few minutes to come back. Prepare the zips and pick the datasets before the day.

Limits and good practice

These points come from the kit's docs, measured on real jobs. Read LIMITATIONS.md before porting a real project.

  • This is batch processing, not an interactive machine: even a tiny job takes about 8 to 10 minutes round trip. Debug on your own computer first.
  • A job runs for at most 48 hours. Save checkpoints in the working folder.
  • Each tool's Python environment is read-only. Install your packages into $TMPDIR with pip install --target.
  • Versions are fixed: the PyTorch tool uses torch 2.0.1. Pin numpy below version 2.
  • NSG returns the whole working folder. Do not install packages there, or the download grows a lot.
  • Each job starts from scratch: nothing is kept between jobs.

LIMITATIONS.md: the constraints to work within

What NeuroTechX is and is not here

  • NeuroTechX is not affiliated with SDSC and is not a partner of NSG. NSG is run by SDSC; its rules and decisions are its own.
  • nsg-agent-kit is a community project built on NSG's public interfaces. NSG did not produce it and does not officially support it.
  • For an account, an allocation or a problem on NSG, write to nsghelp@sdsc.edu. For a problem with the kit, open an issue on its GitHub repository.

Sources