Iranian Developers Are Losing Access to GitHub, npm, and the Cloud — What US Sanctions Actually Block

Abhishek GautamAbhishek Gautam9 min read
Iranian Developers Are Losing Access to GitHub, npm, and the Cloud — What US Sanctions Actually Block

Quick summary

As USA-Iran conflict escalates in 2026, Iranian developers are losing access to GitHub, npm, VS Code, cloud platforms, and payment systems. What is blocked, who is affected, and what the open source world is doing about it.

Long before missiles flew in 2026, the US government had been quietly cutting Iranian developers off from the global software ecosystem. US sanctions — administered by the Office of Foreign Assets Control (OFAC) — require American companies to restrict access to their services for users in sanctioned countries. GitHub, npm, VS Code, most cloud platforms, and virtually all payment processors are subject to these rules. As the USA-Iran conflict has escalated, enforcement has tightened. Here is exactly what is blocked, what is not, and what the global developer community is doing about it.

What Is Currently Blocked for Iranian Developers

GitHub: GitHub (owned by Microsoft) has restricted access for users in Iran to paid features and private repositories since 2019. After the 2026 escalation, restrictions have tightened further. Iranian developers can still access public repositories as anonymous users, but creating accounts, pushing code, participating in discussions, and accessing GitHub Actions, Codespaces, and Copilot requires workarounds. GitHub has stated this is driven by OFAC requirements, not company policy.

npm: npm (also Microsoft/GitHub-owned) restricts Iranian accounts similarly. Publishing packages to the npm registry from Iran is effectively blocked. Downloading packages in a build process generally still works because npm package downloads are considered "publicly available information," but account-authenticated operations face restrictions.

VS Code Extensions Marketplace: Restricted for Iranian accounts. Anonymous extension download typically still works, but account-gated features and publishing do not.

Cloud platforms: AWS, Azure, GCP, and Oracle Cloud all restrict Iranian users per OFAC requirements. No account creation, no credit card processing, no API access. Iranian developers use workarounds — VPNs, accounts registered through diaspora family members, or European/Chinese cloud providers not subject to OFAC.

Payment processors: Stripe, PayPal, and all major US-headquartered processors are unavailable in Iran. Iranian freelancers and open source contributors have no legitimate path to receive international payment through mainstream channels.

App stores: Apple App Store and Google Play restrict Iranian developer accounts. Iranian developers cannot publish paid apps or receive revenue through these platforms.

AI tools: GitHub Copilot, ChatGPT (with account), Claude, and most AI coding assistants require accounts Iranian users cannot create normally.

What Is NOT Blocked

Downloading publicly available open source software is generally not restricted. OFAC carves out "publicly available information" including publicly released software and academic materials. Most Iranian developers can still:

  • Download npm packages in their builds (without an authenticated account)
  • Clone public GitHub repositories
  • Access publicly available documentation and open source code

The restriction is on participation — publishing, contributing, receiving payment, using authenticated services — not on consuming public information.

The Human Impact

Iran has a highly educated developer population. Iranian universities (Sharif University of Technology in particular) produce world-class engineers in CS, mathematics, and engineering. Iranian developers have made significant contributions to open source projects — often without the community realising the contributor's location, because code quality speaks for itself.

The sanctions regime treats all Iranian residents as equivalent regardless of their political views. A 25-year-old developer in Tehran trying to contribute a bug fix to an open source library faces the same restrictions as the IRGC's cyberwarfare division. This is a well-known critique of the OFAC approach from the developer community.

What the Developer Community Is Doing

Alternative platforms: GitLab, Codeberg, and SourceHut are European-headquartered alternatives without the same OFAC obligations. Some Iranian developers and open source projects have moved repositories there. These platforms have explicitly stated more permissive policies for users in sanctioned countries.

Cryptocurrency for payment: Many Iranian freelancers use Bitcoin, USDT, and other cryptocurrencies via DEXs and P2P exchanges to receive international payment. This operates in a grey zone — OFAC technically restricts dollar-denominated crypto transactions with Iran, but P2P enforcement is limited.

VPN usage: Nearly universal among Iranian developers who need access to restricted platforms. Iranian developers commonly use VPNs to access GitHub and developer tools. This creates its own legal ambiguity — OFAC restrictions technically apply regardless of IP obfuscation.

Is Sanctioning Developers Counterproductive?

This is a live policy debate. Arguments for: comprehensive sanctions pressure maximises economic pain on the Iranian government, theoretically weakening its capacity to fund military and nuclear programs.

Arguments against: cutting Iranian developers off from the global software ecosystem does not meaningfully hurt the IRGC, which has its own tools and infrastructure. It does hurt the Iranian middle class and technical community — the demographic most likely to be sympathetic to Western values. It also pushes Iranian developers toward Chinese and Russian technical ecosystems, accelerating the bifurcation of the global internet.

EFF, Access Now, and several open source foundations have advocated for carve-outs specifically for developer tools and open source participation — arguing that code is speech, and restricting individual developer contribution serves no meaningful sanctions objective.

What This Means for Global Developers

If you maintain an open source project, you have almost certainly received contributions from Iranian developers — potentially without knowing it. If you want to maintain an inclusive community, understand the restrictions your hosting platform imposes and communicate alternatives for contributors in restricted jurisdictions.

If you are building a product developers in Iran might use: your US-hosted SaaS may be restricted by OFAC requirements. You can design to minimise friction where legally possible — keep documentation and code assets publicly accessible without account creation.

FAQ

Frequently Asked Questions

Can Iranian developers use GitHub in 2026?

Iranian developers can access public repositories and read open source code, but face restrictions on account creation, private repositories, GitHub Actions, Copilot, and Codespaces due to OFAC (US sanctions) requirements. After the 2026 conflict escalation, enforcement has tightened. Many Iranian developers use VPNs or GitLab/Codeberg as alternatives.

Why are Iranian developers blocked from US tech platforms?

US Office of Foreign Assets Control (OFAC) sanctions require American companies — including Microsoft (GitHub, npm, VS Code), AWS, Google, Apple — to restrict access for users in Iran. This is a US government legal requirement, not a company policy choice. The restrictions affect all Iranian residents regardless of their individual political views or government affiliation.

What alternatives do Iranian developers use instead of GitHub?

GitLab (Dutch headquarters, less OFAC exposure), Codeberg, and SourceHut are the main alternatives. For cloud compute, European providers like Hetzner and OVH, and Chinese providers like Alibaba Cloud, are used. For payments, P2P cryptocurrency (Bitcoin, USDT) is common despite regulatory grey areas.

Can I accept open source contributions from Iranian developers?

Generally yes — open source code contribution (pull requests, bug reports, code review) is not a financial transaction and falls under the 'publicly available information' carveout in OFAC regulations. The restrictions are primarily on financial transactions, paid services, and authenticated platform access. Most open source maintainers can accept code contributions from Iranian developers without sanctions exposure.

Free Weekly Briefing

The AI & Dev Briefing

One honest email a week — what actually matters in AI and software engineering. No noise, no sponsored content. Read by developers across 30+ countries.

No spam. Unsubscribe anytime.

More on Security

All posts →
SecurityTech Industry

Iran, Israel, USA and Tech in 2026: The Complete Developer Guide to Geopolitical Conflict and Its Impact on Global Infrastructure

Everything developers and tech professionals need to know about the Iran-Israel-USA conflict in 2026 — cyberattacks, internet blackouts, AI in warfare, GPS jamming, sanctions, the splinternet, and what it means for global infrastructure. All 11 deep-dives in one place.

·18 min read
SecurityTech Industry

DOGE Got Inside America's Most Critical Databases — The Technical Reality Is Worse Than the Headlines

DOGE transferred a live copy of the entire US Social Security database to an unsecured cloud server, accessed Treasury payment systems, and disabled security tracking at the NLRB. Here is what actually happened technically and what it means for everyone who builds systems.

·13 min read
SecurityTech Industry

Starlink Is Now a Weapon of War: Iran Jammed It Nationwide, Ukraine Used It to Stop Russian Strikes — What Developers Need to Know

In January 2026, Iran deployed military-grade electronic warfare to jam Starlink across the entire country. In February 2026, Ukraine weaponised Starlink to cut off Russian frontline communications and halt strikes. Satellite internet is no longer civilian infrastructure.

·12 min read
SecurityTech Industry

The Global Undersea Cable Attack Map: Baltic Sea Sabotage, Taiwan Blackout Risk, and Why 10 Cables Have Been Cut in 2 Years

Ten undersea cables cut in the Baltic Sea since 2022. Five incidents near Taiwan in 2024-2025. A Taiwan cable blackout would cost $55 million per day. NATO Baltic Sentry operation has launched. Here is the complete picture of undersea cable attacks beyond the Middle East in 2026.

·13 min read

Free Tool

Will AI replace your job?

4 questions. Get a personalised developer risk score based on your stack, role, and what you actually build day to day.

Check Your AI Risk Score →

Written by

Software Engineer based in Delhi, India. Writes about AI models, semiconductor supply chains, and tech geopolitics — covering the intersection of infrastructure and global events. 917+ posts cited by ChatGPT, Perplexity, and Gemini. Read in 167 countries.