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.

1983 Northern Telecom Commodore Phone

https://www.oldtelephoneroom.ca/1983-northern-telecom-commodore-phone/
1•arexxbifs•22s ago•0 comments

Give your sandboxed agents API keys they can't read

https://www.superserve.ai/blog/introducing-secrets/
1•Amit_Patil_010•2m ago•0 comments

Better Grammar – Grammar Practice for Adults

https://benkaiser.github.io/better-grammar/
1•benkaiser•6m ago•0 comments

Summer Solstice 2026: Sunrise Live from Stonehenge [video]

https://www.youtube.com/watch?v=Z8a4eoxUIMw
1•zeristor•7m ago•1 comments

10 years of terms and conditions I've agreed to

https://henryach.com/blog/tsandcs/
1•henryhoward•9m ago•1 comments

An Axiomatic Audit of Modern Physics Frameworks via Structural Logic

https://zenodo.org/records/20780519
1•VCNoninski•11m ago•0 comments

Promptblock – detect prompt injections in GitHub issues

https://ryandens.github.io/promptblock/
1•rdens1•14m ago•1 comments

Show HN: I Built an MCP Server in 200 Lines of Go (and Claude Became 10x Useful)

https://medium.com/dev-genius/i-built-an-mcp-server-in-200-lines-of-go-and-claude-became-10x-more...
1•cheikhshift•15m ago•0 comments

Show HN: Wirewright, an experimental symbolic physics environment

https://github.com/wirewright/wirewright
1•homonoidian•19m ago•0 comments

HiFi/Stereo Review-Stereo Review – Audiophile Magazine from 1958 to 1999

https://www.worldradiohistory.com/Archive-All-Audio/HiFI-Stereo-Review.htm
1•PopAlongKid•26m ago•1 comments

Show HN: Phileas – Local-first memory that remembers you

https://github.com/alexajuno/phileas
1•alexajuno•27m ago•0 comments

Jets were 300 feet apart in Boston close call that forced Delta flight to abort

https://www.pbs.org/newshour/nation/jets-were-300-feet-apart-in-boston-close-call-that-forced-del...
3•abixb•28m ago•0 comments

New Super Pac Aims to Rally Tech Workers to Help Limit A.I

https://www.nytimes.com/2026/06/18/technology/ai-super-pac-guardrails-alliance.html
4•reasonableklout•30m ago•0 comments

Napoleon Was a Guitarist

https://www.yamaha.com/en/musical_instrument_guide/classical_guitar/trivia/
2•thunderbong•39m ago•1 comments

Bean – a portable convergence gate for agent work

https://github.com/grainulation/bean/
3•woptober•45m ago•0 comments

Spas Were a Mistake (2022)

https://gomakethings.com/articles/spas-were-a-mistake/
1•kristianp•45m ago•0 comments

FoodFavs

https://foodfavs-euq7bgdf.manus.space/
1•pteridactlecdt•47m ago•0 comments

Show HN: TaxLens – free lodging-tax API for hotels, OTAs, and property managers

https://taxlens.getdynamiq.ai
1•vitalii-duk•48m ago•0 comments

A dead simple personal website engine for developers focused on simplicity

https://github.com/iam-mhaseeb/koji
3•iamhaseeb•50m ago•0 comments

Nix-build in under 100 lines

https://fzakaria.com/2026/06/21/nix-build-in-under-100-lines
2•undeveloper•51m ago•0 comments

AStarGrid2D in Godot 4: The Complete Reference

https://vav-labs.com/blog/astargrid2d-complete-reference/
2•Vav-Labs•53m ago•0 comments

Show HN: ANMA, boundary contracts for cheaper AI coding agents

https://github.com/anma-labs/anma
1•nxy•53m ago•0 comments

Show HN: AI Colours

https://github.com/pilotpirxie/ai-colours
1•__natty__•54m ago•0 comments

Ask HN: What would justify writting an OS kernel in 2026?

3•alonsovm44•55m ago•3 comments

Show HN: PeekAI – Local-first observability for Python AI agents

https://github.com/oussamaKH63/peekai
2•ousskh63•56m ago•0 comments

Petition against Meta's employee training data collection for ML models

https://mcipetition.com/
2•reasonableklout•1h ago•0 comments

Show HN: Lupen – an itemized, verified receipt for Claude Code and Codex spend

https://github.com/momoraul/Lupen
1•momoraul•1h ago•0 comments

Riddle solved: Why was Roman concrete so durable? (2023)

https://news.mit.edu/2023/roman-concrete-durability-lime-casts-0106
1•Jakob•1h ago•0 comments

Tech Workers Are Fighting Against Silicon Valley's AI Push

https://www.techpolicy.press/tech-workers-are-fighting-against-silicon-valleys-ai-push/
7•reasonableklout•1h ago•1 comments

Falcon GX the most powerful brand engineering tool

https://falcon.so/
1•cts-i-cts-d•1h ago•0 comments