• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Serverless, inc.

Bedrock AgentCore: LangGraph Agent with Custom Code Interpreter (JavaScript)

by

LangGraph JS agent using a custom AgentCore Code Interpreter with PUBLIC network access.

  1. Bedrock AgentCore: LangGraph Agent with Custom Code Interpreter (JavaScript)

LangGraph Custom Code Interpreter Example

A LangGraph JavaScript agent with a custom code interpreter that has PUBLIC network access.

Features

  • PUBLIC Network: Code can access external APIs (unlike SANDBOX default)
  • Custom Interpreter: Uses your own interpreter configuration
  • Python Execution: Run Python code with network access
  • LangGraph JS: ReAct agent with custom code execution tool

How It Differs from Default

AspectDefaultCustom
NetworkSANDBOX (no network)PUBLIC (internet access)
Identifieraws.codeinterpreter.v1Your own interpreter ID
Use caseIsolated computationExternal API calls, web scraping

Quick Start

Deploy

npm install
sls deploy

Test

RUNTIME_ARN=<your-runtime-arn> node test-invoke.js

Remove

sls remove

Related Examples

  • langgraph-code-interpreter - Default interpreter (SANDBOX)

Contents

  • LangGraph Custom Code Interpreter Example
  • Features
  • How It Differs from Default
  • Quick Start
  • Deploy
  • Test
  • Remove
  • Related Examples

Related

GuidesPluginsExamplesSlack CommunitySupport