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.

In Mizoram, India, the Shops Have No Shopkeepers (2020)

https://matadornetwork.com/read/mizoram-india-shops-no-shopkeepers/
1•susam•3m ago•0 comments

Turning spoken commands into JSON tool calls on iPhones

https://blog.wildedge.dev/posts/in-app-voice-assistant
2•wojked•5m ago•0 comments

Lessons from Building Evals for Financial AI Agents

https://www.primerapp.com/blog/lessons-from-3-years-of-evals/
3•smallwoodal•6m ago•1 comments

I moved a broker's virtualization from Hyper-V to Proxmox with zero downtime

https://faridsaid.com/en/blog/migration-hyperv-proxmox.html
1•fawraw•10m ago•0 comments

Callback 8020 by Commodore – The Flip Phone Between Dumb and Smart

https://order.commodore.net/callback-privacy/
1•fmoronzirfas•13m ago•0 comments

Minia2a – A Marketplace Where AI Agents Earn Money

https://minia2a.uk
1•dgyte•13m ago•1 comments

Databricks vs. AWS managed service which one fits your need?

https://thedatabytes.substack.com/p/databricks-vs-aws-native-at-20tb
1•badhayaru•15m ago•0 comments

Natural Selection Maximizes Fisher Information

https://www.researchgate.net/publication/23496378_Natural_Selection_Maximizes_Fisher_Information
1•dtj1123•15m ago•0 comments

Safebucket – an open source file sharing platform with pluggable infrastructure

https://github.com/safebucket/safebucket
1•sebakubisz•15m ago•0 comments

Yann LeCun „World Models: Enabling the Next AI Revolution" [video]

https://www.youtube.com/watch?v=72Xj8k5WQX4
1•dgellow•17m ago•0 comments

Optimizing [sqlx:test] rebuild time

https://kobzol.github.io/rust/2026/06/21/optimizing-sqlx-test-rebuild-time.html
1•ibobev•17m ago•0 comments

Networking tool to host WireGuard servers with only outbound connections

https://github.com/klauscam/BastionRoute
1•tuta88•18m ago•0 comments

Anthropic's Mythos mess just keeps getting more complicated

https://www.theregister.com/ai-and-ml/2026/06/22/anthropics-mythos-mess-just-keeps-getting-more-c...
1•rbanffy•18m ago•0 comments

Agile and Coding: An Agent- and Human-Friendly Architecture

https://davidvujic.blogspot.com/2026/06/an-agent-and-human-friendly-architecture.html
1•BerislavLopac•18m ago•0 comments

PivCo-Huffman "Merge" Operations

https://fgiesen.wordpress.com/2026/06/21/pivco-huffman-merge-operations/
1•ibobev•18m ago•0 comments

Show HN: Cyclearchive.com – searchable archive of historical cycling literature

https://cyclearchive.com/
1•alastairr•18m ago•0 comments

Interlude: Using the Index Registers Effectively on the Z80

https://bumbershootsoft.wordpress.com/2026/06/20/interlude-using-the-index-registers-effectively-...
1•ibobev•19m ago•0 comments

Keir Starmer announces his resignation as prime minister

https://www.bbc.co.uk/news/live/ckger03mrl0t
5•jjgreen•21m ago•0 comments

Metasurface in Solar Telescope Captures Polarized Light

https://spectrum.ieee.org/optical-metasurface-solar-telescope
1•rbanffy•21m ago•0 comments

Disposable software: software is now just paper plates

https://auren.substack.com/p/disposable-software-software-is-now
1•sandgiant•24m ago•0 comments

A C++ AirPlay 2 sender: the encrypted RAOP/RTSP recipe, written down

https://github.com/akustikrausch/airplay2-sender-cpp
1•akustikrausch•31m ago•0 comments

Use AI for reviewing code especially when the diff is huge

https://simianwords.bearblog.dev/you-should-use-ai-for-reviewing-code-especially-when-the-diff-is...
2•simianwords•33m ago•0 comments

Show HN: Gingerpaw : A voice dictation and agent workspace app

https://github.com/Vikrant-Khedkar/gingerpaw
2•vikrant-gg•35m ago•0 comments

Show HN: Graphical SQL Builder and Debugger

https://github.com/webofmarius/SQLJoiner
1•matei88•38m ago•0 comments

The Most Effective Screen Time Passcode Is One You Can't Remember

https://mindfultech.bearblog.dev/the-most-effective-screen-time-passcode-is-one-you-cant-remember/
1•rainydesert•47m ago•0 comments

Engineering Got Faster. Now the Hard Part Is Deciding What to Build

https://ferrix.ai/blog/engineering-got-faster-hard-part-is-deciding-what-to-build
1•B_Nemade•51m ago•0 comments

Multi-Turn Reflective Masking Elicits Reasoning in Mask Diffusion Models

https://zhangyanming-cs.github.io/Multi-Turn_RM/
1•ilreb•52m ago•0 comments

ZenStack, tRPC and Kit

https://attic.olup.me/projects/zenstack-trpc-kit
1•carlual•54m ago•0 comments

Donate your Claude Code traces to an open CC-BY-4.0 dataset

https://trace-commons-web.hf.space/
1•_josh_meyer_•57m ago•1 comments

Cool Magnetic Field Viewer [video]

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