> For the complete documentation index, see [llms.txt](https://docs.sola.security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sola.security/integrations/data-sources/claude-code.md).

# Claude Code

## Overview <a href="#overview" id="overview"></a>

The Claude Code integration allows you to monitor the security posture and usage of Claude Code, your coding agent, across your organization as a real-time data stream, and investigate it alongside your broader security environment.

With the Claude Code integration, you can:

* Get a full inventory of what's installed on each developer's machine, including plugins, trusted marketplaces, custom skills, and subagents.
* Review MCP server connections, permission rules, hooks, and security settings such as bypass mode and auto-update channel, to spot risky configurations before they're exploited.
* See which AWS, GCP, and Azure profiles are configured on each device, without exposing the underlying credentials, and correlate them with identity and access data across your environment.
* Track developer sessions, tool calls, and prompt activity, without exposing prompt content.

{% hint style="warning" %}
**Your data can only be retrieved, never modified.**

Once connected, your data is securely stored, and access is restricted to retrieving configurations and metadata only. Authentication methods ensure secure delegation of permissions while maintaining data integrity.
{% endhint %}

## Set up Claude Code data source integration with Sola <a href="#set-up-wiz-data-source-integration-with-sola" id="set-up-wiz-data-source-integration-with-sola"></a>

{% columns %}
{% column width="66.66666666666666%" %}
Go to ***Integrations*** > [***Data Sources***](https://app.sola.security/integrations/data-sources) > click ***New data source*** > select ***Claude Code***.

*The Sola wizard will take you through the steps.*
{% endcolumn %}

{% column width="33.33333333333334%" %} <a href="https://app.sola.security/integrations/data-sources?integration=CLAUDE_CODE" class="button primary">Set up Claude Code -></a>
{% endcolumn %}
{% endcolumns %}

To connect Claude Code, you'll need access to the machine or MDM system where Claude Code is deployed.

{% tabs %}
{% tab title="Setup script" %}
This method uses a setup script to install and configure the Sola plugin in your Claude Code environment. Run the script manually on a single machine, or deploy it org-wide using your MDM system.

Creating the connection in the first step in the wizard initializes the incoming data endpoint and creates the integration. To complete the connection you must run the setup script manually or using your MDM system. The script adds Sola to the Claude Code marketplace, installs the plugin, and configures it to work with your integration.

Once the script runs, data will start streaming into the `tools`, `sessions`, and `user_prompts` tables, and you'll see it reflected in your integration's tables. Until the script runs, the integration remains incomplete and these tables stay empty.
{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Data freshness**

Engagement data reflects activity up to 3 days prior. This applies to the Usage & Activity, Organization, and Skills, Connectors & Projects tables.
{% endhint %}

***

## FAQs

### What is the difference between the Claude data sources?

Sola offers three Anthropic integrations:

* [Claude Console](/integrations/data-sources/claude-console.md): for API platform customers (Build, Scale, or Team).
* [Claude Enterprise](/integrations/data-sources/claude-enterprise.md): for seat-based claude.ai plans, with compliance and activity data for eDiscovery and DLP.
* [Claude Enterprise Analytics](/integrations/data-sources/claude-enterprise-analytics.md): for seat-based claude.ai plans, with usage, adoption, and cost analytics.
* [Claude Code](/integrations/data-sources/claude-code.md): for organizations using Claude Code as an AI coding agent, with visibility into developer sessions, tool calls, and prompts.

Use Console if you connect to Anthropic through the API platform. If you're on a seat-based claude.ai plan, use the Claude Enterprise integrations; you can connect both.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sola.security/integrations/data-sources/claude-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
