> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Write onchain programs

> When existing programs aren't enough, write your own: Rust, Anchor, testing and deploying.

Most apps never write a program. Payments, tokenized assets, and markets run on
<span className="sol-chip" data-concept="program"><Tooltip headline="Programs" tip="Programs are code deployed to the network that owns and updates accounts. Most apps call existing programs, such as the Token program, rather than writing their own." cta="Learn more" href="/developers/docs/core/programs">programs</Tooltip><span className="nojs-only"> ([Programs](/developers/docs/core/programs): Programs are code deployed to the network that owns and updates accounts. Most apps call existing programs, such as the Token program, rather than writing their own.)</span></span> that already
exist on the network, such as the Token program. Write your own when you need
rules or state that no existing program provides: code that runs on Solana,
owns its
<span className="sol-chip" data-concept="account"><Tooltip headline="Accounts" tip="Everything on Solana (balances, tokens, programs, app data) lives in accounts: records at an address, each with an owner that is allowed to change it." cta="Learn more" href="/developers/docs/core/accounts">accounts</Tooltip><span className="nojs-only"> ([Accounts](/developers/docs/core/accounts): Everything on Solana (balances, tokens, programs, app data) lives in accounts: records at an address, each with an owner that is allowed to change it.)</span></span> and can be
called by anyone.

## Build a program

<Columns cols={2}>
<Card title="Build your first program" icon="rocket" href="/developers/docs/programs/build-first-program">
Create, build, and test an Anchor program, then read every file it contains.
</Card>
<Card title="Rust programs" icon="code" href="/developers/docs/programs/rust">
Create, build, test, and deploy programs in native Rust.
</Card>
<Card title="Anchor framework" icon="anchor" href="/developers/docs/programs/anchor">
The standard framework for Solana programs in Rust.
</Card>
<Card title="Program examples" icon="library" href="/developers/docs/programs/examples">
Reference programs in different languages and frameworks.
</Card>
</Columns>

## Test, deploy, and integrate

<Columns cols={2}>
<Card title="Testing programs" icon="flask-conical" href="/developers/docs/programs/testing/mollusk">
Test programs with Mollusk.
</Card>
<Card title="Deploying" icon="upload" href="/developers/docs/programs/deploying">
Build, deploy, and manage programs with the Solana CLI.
</Card>
<Card title="Verified builds" icon="badge-check" href="/developers/docs/programs/verified-builds">
Link a deployed program to its source code so anyone can verify it.
</Card>
<Card title="IDLs & Codama clients" icon="file-braces" href="/developers/docs/programs/idls">
Describe your program's interface and generate typed clients.
</Card>
<Card title="Limitations" icon="triangle-alert" href="/developers/docs/programs/limitations">
Runtime limits to design for.
</Card>
<Card title="Set up your machine" icon="laptop" href="/developers/docs/quickstart">
Install Rust, the Solana CLI, and Anchor with one command.
</Card>
</Columns>

For local testing beyond unit tests, see [LiteSVM](/developers/docs/tools/litesvm) (an
in-process VM) and [Surfpool](/developers/docs/tools/surfpool) (a local network).

<Note>
New to how programs store state? Read
<span className="sol-chip" data-concept="pda"><Tooltip headline="Program-derived addresses" tip="A PDA is an address derived from a program plus some seeds. It has no private key, so only that program can sign for it, which makes it handy for storing app state at predictable addresses." cta="Learn more" href="/developers/docs/core/pda">program-derived addresses</Tooltip><span className="nojs-only"> ([Program-derived addresses](/developers/docs/core/pda): A PDA is an address derived from a program plus some seeds. It has no private key, so only that program can sign for it, which makes it handy for storing app state at predictable addresses.)</span></span> and
<span className="sol-chip" data-concept="cpi"><Tooltip headline="Cross-program calls" tip="A cross-program call (CPI) is one program calling another inside the same transaction, the way your program would call the Token program to move tokens." cta="Learn more" href="/developers/docs/core/cpi">cross-program calls</Tooltip><span className="nojs-only"> ([Cross-program calls](/developers/docs/core/cpi): A cross-program call (CPI) is one program calling another inside the same transaction, the way your program would call the Token program to move tokens.)</span></span> in
[How Solana works](/developers/docs/core) before you design your accounts.
</Note>
