# axon anchors embed

Source: https://usecns.dev/axon-cli-anchors-embed/

[Start here](https://usecns.dev/manual-axon/)
[CLI commands](https://usecns.dev/commands-axon/)
[Configuration & integration](https://usecns.dev/axon-topics/)

Part of [`axon anchors`](https://usecns.dev/axon-cli-anchors/). See that entry for shared arguments and usage.

```
axon anchors embed [--embed-provider <provider>] [--embed-url <endpoint>]
  [--embed-model <model>] [--batch-size <count>] [--concurrency <count>]
  [--all-nodes] [--min-fan-in <files>] [--json]
```

Precompute/persist embeddings for architectural anchors. By default only anchor texts that `anchor-search` should land on are embedded: surfaces, artifacts, infrastructure and framework symbols (routes, commands, components, workflows) and whatever they target, such as a route's handler; functions, methods, variables and constants referenced from at least `--min-fan-in` (3) distinct other files; and classes, interfaces, traits, enums, structs and type aliases whose file is referenced from that many files or holds such an entrypoint. Symbols in test files are skipped. `--all-nodes` embeds every node text instead. Lexical anchor search still covers every node; nodes outside the scope have no stored vector. Texts whose vector for the model is current are skipped, so a rerun with no changed anchor text embeds nothing. Batch size defaults to 64; remote providers keep `--concurrency` requests (default 8, at most 16) in flight and commit results as they arrive. Shared search/rerank flags remain parser-accepted but are not passed to this embedding operation. A missing default graph may be built first. Human mode shows progress; JSON emits the embedding summary, including actual provider/fallback information. Provider/configuration errors propagate as runtime failure, not a successful empty search.

See [CLI conventions](https://usecns.dev/axon-cli-usage/) for shared configuration and exit behavior, or [browse all commands](https://usecns.dev/commands-axon/).