Skip to main content
v2026.11,858 entries · CC-BY 4.0
Dictionary termTrack CStablev2026.2

Open code

The practice of releasing the source code used in a study, under an open-source licence, alongside the publication, such that any reader may inspect, reuse, and re-execute the analysis.

ByCASRAI Editorial Board
· Last updated 5 Sept 2026
Share this

Ask CASRAI · free to try

Ask about Open code

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Examples

Worked examples

  • Is an instance

    A study's analysis scripts published on GitHub and archived in Zenodo with DOI on paper acceptance.

  • Is an instance

    A bioinformatics pipeline released under MIT licence with a CITATION.cff file.

Counter-examples

Looks similar, but isn't

  • Not an instance

    Code 'available on reasonable request'.

  • Not an instance

    Pseudocode in a methods section.

Editorial commentary

Open code is the practice of releasing the source code used to process and analyse a study’s data — scripts, pipelines, notebooks — under an open-source licence alongside the publication, so that any reader can inspect exactly what was computed and re-execute the analysis rather than relying on a prose description of the method. It is a necessary condition for computational reproducibility: even a fully open dataset cannot be independently checked if the specific transformations, model specifications, and exclusion rules applied to it are not themselves available for inspection.

Established good practice combines several elements: a version-controlled repository (typically Git, hosted on GitHub or GitLab); a permanent archival snapshot taken at the time of publication (via Zenodo or Software Heritage, since a live repository can be edited, renamed, or deleted after the fact); an explicit open-source licence (MIT, BSD, GPL, and Apache-2.0 are the most common in research code); and a machine-readable citation file (CITATION.cff) so the software itself can be cited properly.

Why “available on request” does not count

Code described in a paper as “available from the authors on reasonable request,” or presented only as pseudocode in a methods section, does not meet the open-code standard: both leave a reader dependent on the original authors’ continued willingness and availability, rather than providing an independently accessible, citable artefact. A growing number of journals now decline this wording outright for both code and data availability statements. Journals implementing the TOP Guidelines' Analytic Methods (Code) Transparency standard grade exactly this: the higher levels require deposit in a trusted repository, not a promise of availability. Open code is a separate practice from open data (the inputs) and open materials (the instruments used to generate those inputs) — a study can release any one of the three without the others, though reproducibility is strongest when all three are present together.

References

Also known as

open-source research code · shared analysis code

Machine-readable encodings

Use in your systems

JATS XML <role> element
xml
<role vocab="credit"
      vocab-identifier="https://casrai.org/dictionary/"
      vocab-term="Open code"
      vocab-term-identifier="https://casrai.org/dictionary/term/open-code" />
Schema.org DefinedTerm (JSON-LD)
json
{
  "@context": "https://schema.org",
  "@type": "DefinedTerm",
  "@id": "https://casrai.org/dictionary/term/open-code",
  "name": "Open code",
  "identifier": "https://casrai.org/dictionary/term/open-code",
  "description": "The practice of releasing the source code used in a study, under an open-source licence, alongside the publication, such that any reader may inspect, reuse, and re-execute the analysis.",
  "inDefinedTermSet": "https://casrai.org/dictionary/domain/reproducibility#set",
  "url": "https://casrai.org/dictionary/term/open-code",
  "alternateName": [
    "open-source research code",
    "shared analysis code"
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "publisher": {
    "@id": "https://casrai.org/#organization"
  },
  "author": {
    "@id": "https://casrai.org/#editorial-team"
  },
  "datePublished": "2026-05-21T02:22:49",
  "dateModified": "2026-09-05T14:24:09",
  "inLanguage": "en-GB",
  "isAccessibleForFree": true
}

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →

Ask CASRAI · Regulatory Radar

Research-admin question? Get an answer that links its sources.

An AI assistant specialized in research administration. Every answer links its sources to check before you act. 2 questions free, no account. $29/month after.

  • Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.
  • Every answer numbers its sources and links each one, so you can check the source yourself.