PricingOpen source
PublishedDec 6, 2026

What it does

X Algorithm is the official open-source repository from xAI at github.com/xai-org/x-algorithm, licensed Apache-2.0. When reviewed on 2026-12-06 it had about 34,600 GitHub stars, had been pushed that day, and listed no separate marketing homepage. The README says it contains the core code that decides which posts a viewer sees in the For You feed on X: in-network posts from accounts the viewer follows, out-of-network posts found through machine-learning retrieval and other mechanisms, filters, and ranking with a transformer model. It also describes pieces the model does not rank by itself, such as ads and “Who to Follow,” and a separate visibility-filtering path for blocks, mutes and labels. The README records jurisdiction-specific behaviour, including a Brazil 2026 election filter described in the repository. This entry only repeats what the README states; it is source code to study, not a standalone app, and production behaviour on X can change.

  • Read the official xAI repository if you want to study how the For You feed ranks in-network and out-of-network posts
  • Use the commented ranking and filtering code as a reference, not as a drop-in product for another social network
  • Check the Apache-2.0 license and the README notes about filters, including jurisdiction-specific behaviour

Categories

Open Sourceopen-sourceapache-2.0xairecommendationtransformerfor-you

Frequently asked questions

What is X Algorithm?
X Algorithm is the official open-source repository from xAI at github.com/xai-org/x-algorithm. The README says it contains the core code that decides which posts a viewer sees in the For You feed on X: in-network content, out-of-network content found through machine-learning retrieval and other mechanisms, filters, and ranking with a transformer model. It is licensed Apache-2.0.
Is this a product you install?
The repository is source code for X’s own For You ranking pipeline, not a general-purpose app with a marketing site. When reviewed on 2026-12-06 the GitHub project had no separate homepage. Treat it as documentation and code to read, and follow the license.
Does it include every rule that runs in production?
The README describes the core ranking and filtering path and mentions additional pieces such as ads and “Who to Follow.” It also notes jurisdiction-specific filters, including a Brazil 2026 election filter described in the repository. This entry only repeats what the README states; production behaviour on X can change.

Explore

More in AI Developer Tools

QdrantAI Developer Tools

Open-source Rust vector database and similarity search engine with payload filtering; managed cloud with a free tier.

Freemiumembeddings
AirbyteAI Developer Tools

Open-source data movement for ELT pipelines and AI agents: APIs, databases and files into warehouses, lakes and AI apps.

Open sourceopen-source
you.botAI Agent

you.bot: The same AI models for up to 46% less. you.bot is one API for 70+ LLM, image, video and music models — Claude, GPT, Gemini, Kling, Seedance, Veo, GPT Image 2, Nano Banana Pro, Suno and more —

Not specified
CorrathAI API

Corrath: Corrath is an AI security gateway for modern AI applications. It sits between your app and AI providers to protect API keys, block prompt injections, control spending, monitor usage, detect t

Not specified
GraphifyAI Developer Tools

Turn a codebase plus its docs, SQL schemas, configs and PDFs into a queryable knowledge graph for coding agents.

Open sourcegithub

A coding-agent skill from Cloudflare for multi-phase security audits with verified, machine-readable findings.

Open sourcegithub