
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
ai-sdk-devtools
Advanced tools

A powerful debugging and monitoring tool for AI SDKs that provides real-time insights into AI streaming events, tool calls, and performance metrics.
AI SDK Devtools helps you debug and monitor AI applications by:
npm install ai-sdk-devtools
import { AIDevtools } from 'ai-sdk-devtools';
function App() {
return (
<div>
{/* Your AI app components */}
{/* Add the devtools component - only in development */}
{process.env.NODE_ENV === "development" && <AIDevtools />}
</div>
);
}
app/layout.tsximport type { Metadata } from 'next';
import { AIDevtools } from 'ai-sdk-devtools';
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
{children}
{process.env.NODE_ENV === 'development' && (
<AIDevtools />
)}
</body>
</html>
);
}
import { useChat } from 'ai/react';
import { AIDevtools } from 'ai-sdk-devtools';
function ChatComponent() {
const { messages, input, handleInputChange, handleSubmit } = useChat({
api: '/api/chat',
...
});
return (
<div>
{/* Your chat UI */}
{process.env.NODE_ENV === "development" && <AIDevtools />}
</div>
);
}
<AIDevtools
enabled={true}
maxEvents={1000}
modelId="gpt-4o" // For context insights
config={{
position: "bottom", // or "right", "overlay"
height: 400,
streamCapture: {
enabled: true,
endpoint: "/api/chat",
autoConnect: true
},
throttle: {
enabled: true,
interval: 100, // ms
includeTypes: ["text-delta"] // Only throttle high-frequency events
}
}}
debug={false} // Enable debug logging
/>
import { useAIDevtools } from 'ai-sdk-devtools';
function MyComponent() {
const {
events,
clearEvents,
toggleCapturing
} = useAIDevtools({
maxEvents: 500,
onEvent: (event) => {
console.log('New event:', event);
}
});
return (
<div>
<button onClick={clearEvents}>Clear Events</button>
<button onClick={toggleCapturing}>Toggle Capture</button>
<div>Events: {events.length}</div>
</div>
);
}
const { filterEvents, getUniqueToolNames, getEventStats } = useAIDevtools();
// Filter events
const toolCallEvents = filterEvents(['tool-call-start', 'tool-call-result']);
const errorEvents = filterEvents(['error']);
const searchResults = filterEvents(undefined, 'search query');
// Get statistics
const stats = getEventStats();
const toolNames = getUniqueToolNames();
The devtools capture these event types:
tool-call-start - Tool call initiatedtool-call-result - Tool call completed successfullytool-call-error - Tool call failedmessage-start - Message streaming startedmessage-chunk - Message chunk receivedmessage-complete - Message completedtext-start - Text streaming startedtext-delta - Text delta receivedtext-end - Text streaming endedfinish - Stream finishederror - Error occurredEnable debug logging to see detailed event information:
<AIDevtools debug={true} />
Or enable globally:
window.__AI_DEVTOOLS_DEBUG = true;
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
AI development tools for debugging and monitoring AI SDKs streams
We found that ai-sdk-devtools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.