Skip to content

Add datasources & passtrough#19

Merged
tino097 merged 72 commits intomainfrom
feature/add-datasoruces-md
Mar 26, 2026
Merged

Add datasources & passtrough#19
tino097 merged 72 commits intomainfrom
feature/add-datasoruces-md

Conversation

@tino097
Copy link
Contributor

@tino097 tino097 commented Mar 20, 2026

Add datasource vault with credential injection and output scrubbing
Introduces a full datasource connection system for Anton — users can connect databases and APIs, credentials are stored in a local vault, and the LLM works with them safely.

  • Local Vault (data_vault.py) — stores credentials as JSON in ~/.anton/data_vault/,
  • Datasource Registry (datasource_registry.py, datasources.md) — built-in definitions for PostgreSQL, HubSpot, and others supports custom engines via ~/.anton/datasources.md
  • Credential injection — at session startup, all vault connections are injected as DS_* env vars so scratchpad subprocesses inherit them without reading vault files directly. Cleared after session ends or connected to another datasource.
  • Output scrubbing — before any scratchpad result reaches the LLM, secret DS_* values are replaced with their placeholder name (e.g. [DS_PASSWORD]). Driven by DatasourceField.secret from the registry definition, not a static allowlist
  • Slash commands — /connect-data-source, /list-data-sources, /remove-data-source wired into the chat REPL and anton connect-datasource CLI command

EDIT:

  • This PR contains onboarding-launch changes

@tino097 tino097 marked this pull request as ready for review March 20, 2026 19:12
@alecantu7 alecantu7 changed the title Add datasources Add datasources & passtrough Mar 25, 2026
@tino097 tino097 added this pull request to the merge queue Mar 26, 2026
Merged via the queue into main with commit 1867151 Mar 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants