MeridianDocsSign in
Configuration

Connecting your code

Connect GitHub or GitLab so Meridian scans every repository, builds your AI inventory, attaches evidence and pre-fills your policies.

During onboarding the agent offers to connect your code. You can also connect any time under Settings → Code. Meridian then scans every repository you can see and turns what it finds into the first draft of your AI management system.

What you get

From the scanWhere it goes
Every repository (archived repos and forks skipped)Inventory as repositories
Repositories that use AI, and how (model APIs, frameworks, model runtimes, vector stores)Inventory as AI systems; company profile (systems, AI role "develops")
Third parties that receive data (OpenAI, Anthropic, Pinecone, Stripe, Twilio…)Inventory as vendors
Kinds of data the code handles (payments → financial, identity/messaging → personal data)Company profile data_types
An AI system & repository inventory documentEvidence, linked to every inventory task of your frameworks (for ISO 42001: the system mapping and resource documentation tasks)
AI systems and third partiesPolicies: the AIMS Scope Statement gets an appendix listing them; {{system_name}} and {{scan_date}} are filled in

The profile is only ever added to, never overwritten, and a rescan updates the inventory rather than duplicating it.

Connect

GitHub (github.com or Enterprise). Create a fine-grained personal access token with access to all repositories and read-only Contents and Metadata permissions. A classic token with the repo scope also works. For GitHub Enterprise Server, enter its API URL, e.g. https://github.example.com/api/v3.

GitLab (gitlab.com or self-hosted). Create a personal access token with the read_api and read_repository scopes. For a self-hosted instance, enter its URL, e.g. https://gitlab.example.com.

Paste the token into the connect card in the agent, or into Settings → Code. Meridian checks it against the provider before saving anything; a rejected token is never stored.

A local folder (no token, no network access to your code host). Choose Local folder in the connect card or Settings → Code and pick a repository, or a folder of repositories. Your browser reads only the package manifests and READMEs and sends those; source code never leaves your machine. From a terminal, meridian scan ~/code does the same. Repositories are found by their .git folder or a manifest, up to two levels down; a monorepo's packages count as one repository. To rescan, choose the folder again.

What is read — and what isn't

For each repository Meridian reads:

  • metadata: name, description, topics, visibility, last activity, languages;
  • dependency manifests in the repository root: package.json, requirements*.txt, pyproject.toml, Pipfile, setup.py, environment.yml, go.mod, Cargo.toml, Gemfile, pom.xml, build.gradle(.kts), composer.json;
  • the README.

It does not clone repositories or read source files. AI use is detected from dependency names, such as @anthropic-ai/sdk, openai, langchain, transformers or pinecone-client. A README that talks about AI without an AI dependency is flagged "check", never counted as an AI system.

Limits to know: only root manifests are read, so a monorepo whose services keep their manifests in subfolders may be under-detected. Up to 300 repositories are scanned per connection.

Scanning, rescanning, disconnecting

  • The scan runs in the background with live progress (Scanning… 12 of 40). You can keep answering the agent's questions meanwhile, and it reports the results when they're ready.
  • Rescan from Settings → Code whenever you've added repositories.
  • Disconnect forgets the token and the per-repository results. The inventory, profile facts and evidence it created stay, because they're now your records.

Security

  • Tokens are encrypted at rest with XChaCha20-Poly1305 under a key in your data directory (secret.key), and are never returned by the API or shown again.
  • Use read-only tokens. Meridian never writes to your repositories.
  • Only admins can connect, rescan or disconnect.
  • Connecting, scanning and disconnecting are recorded in the activity ledger.

Draft every document

Right after you enable a framework, the agent offers to build its document set at once. Policies → Draft all does the same thing. Documents you imported are adopted; everything missing is drafted with your company details and the AI systems and third parties from the scan — and written in full by the AI writer when a model is configured. New drafts stay drafts until someone reviews and publishes them. See Starting fresh or bringing your ISMS.