frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•1y ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•1y ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•1y ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

AMD's Instinct MI455X: Aiming for the Sun

https://chipsandcheese.com/p/amds-instinct-mi455x-aiming-for-the
1•ingve•40s ago•0 comments

Local Kubernetes on Mac: A Multi-Node Cluster with UTM

https://blog.qstars.nl/posts/macos-local-kubernetes-cluster-with-utm/
1•victorbrink•8m ago•0 comments

Open Erdos problems solved with the help of GPT-5.6 Sol

https://twitter.com/qiaoqiao2001/status/2080003441821163958
1•vhiremath4•9m ago•0 comments

Show HN: Tool to validate your HTTP-message-signatures-directory

https://sitedex.dev/tools/keycheck
2•zeppelin_7•9m ago•0 comments

SodaSlim Releases Updated 2026 Highlights Soda Slim Capsules Ingredient

https://finance.yahoo.com/healthcare/articles/sodaslim-releases-updated-2026-highlights-122400710...
2•tagysaly•12m ago•0 comments

The Effect of AI on Dunning Kruger

https://blog.zoller.lu/2026/07/dunning-kruger-after-ai-gap-that-no.html
1•thierryzoller•14m ago•1 comments

Japanese AI Robots Used to Replicate Skilled Confectioners' Abilities

https://japannews.yomiuri.co.jp/science-nature/technology/20260719-338181/
1•mushstory•15m ago•0 comments

BTL-3: A 27B open-weight agent model for agentic coding and structural tool use

https://huggingface.co/badtheorylabs/BTL-3
2•wertyk•18m ago•0 comments

Russia's businesses under strain from Ukraine's attacks on Wildberries

https://www.bbc.com/news/articles/cvg9n2y61w6o
3•slow_typist•22m ago•0 comments

Weather Is Happening

https://weatherishappening.com/
2•trainyperson•24m ago•0 comments

New upcoming allocation framework business

https://www.meridianallocation.com/
1•ohmygaoo•24m ago•0 comments

Span-First C#: Designing Around Span<T>

https://slicker.me/c_sharp/span-first.html
1•pjmlp•24m ago•0 comments

SANA-Video 2.0

https://nvlabs.github.io/Sana/Video2/
2•ilreb•24m ago•0 comments

Treasury threatens sanctions, claims Moonshot distilled Anthropic's Fable

https://techcrunch.com/2026/07/22/treasury-threatens-sanctions-after-white-house-claims-moonshot-...
2•mark336•25m ago•0 comments

OldLander: An extension to make old Reddit more usable on phone

https://github.com/octonezd/oldlander
1•zdmgg•27m ago•1 comments

ZonePlan: A free global meeting planner for remote teams

https://zoneplan.net/global-meeting-planner/
1•gavinbuilds•29m ago•0 comments

Scientists find the secret of birdsong's 'spectacular diversity

https://www.bbc.co.uk/news/articles/cwy4eg5dpyzo
1•sarreph•29m ago•0 comments

SharedRoot; Escaping the Claude Cowork Sandbox

https://accomplish.ai/blog/sharedroot-escaping-claude-cowork-sandbox/
1•ilreb•39m ago•0 comments

Flux 3

https://bfl.ai/blog/flux-3
39•ThouYS•42m ago•1 comments

It's an Apple Lisa, on a FPGA

https://hackaday.com/2026/05/09/its-an-apple-lisa-on-a-fpga/
4•austinallegro•43m ago•0 comments

Codex Slides: open-source AI slide studio powered by Codex. Prompt, repo to deck

https://github.com/nexu-io/codex-slides
2•maxloh•45m ago•0 comments

Show HN: StudioWalls. A free portfolio site for artists

https://www.studiowalls.org/
1•veryhungryhippo•47m ago•0 comments

Apertus 1.5 out – Latest version of Switzerland's open model

https://www.cscs.ch/science/computer-science-hpc/2026/apertus-15-building-the-next-generation-of-...
2•myyke•50m ago•2 comments

The Economics of Owning a Data Center [video]

https://www.youtube.com/watch?v=H4cBKJoxmUs
1•thelastgallon•58m ago•0 comments

Making Deformable a Mirror

https://www.youtube.com/watch?v=TPyQI7bJo6Q
1•brudgers•1h ago•0 comments

JEP 401: Value Objects officially proposed to target JDK 28

https://openjdk.org/jeps/401
1•pjmlp•1h ago•1 comments

Meilisearch vs. Manticore: Setting the Record Straight

https://manticoresearch.com/blog/meilisearch-vs-manticore-response/
2•snikolaev•1h ago•0 comments

Show HN: I built a native macOS terminal with Git integration in 5 days

https://kero.sh/
1•0x142857•1h ago•1 comments

OpenSpectra: a Rust CLI for managing specs, changes, and implementation tasks

https://github.com/howie/openspectra
1•modinfo•1h ago•0 comments

Wasmcart – Virtual Cartridge Format for Safe, Portable Games

https://github.com/wasmcart/wasmcart
1•TheWiggles•1h ago•0 comments