Skip to main content
ancha connect prints how to point your agent’s client for a tool at its replica: the variables Ancha sets and a short snippet using the official SDK or fetch.
The language defaults to Python when ancha init’s detection finds a Python project, otherwise TypeScript.

Example

Output
--json prints {"twin", "language", "env", "snippet"}.

Supported snippets

Every tool has a --lang ts snippet. Three also have a --lang py snippet. A combination without a snippet exits 2:
Output
Each tool page shows its snippet and the variables. See Tools.

Exit codes

0. 2 for an unknown tool or an unsupported language.