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.

Lobste.rs is now running on SQLite

https://lobste.rs/s/ko1ji1
2•abetusk•3m ago•0 comments

Forgein – portable context layer for AI tools, native MCP server (MIT CLI)

https://app.forgein.ai
1•shadowmodder•4m ago•0 comments

Which Professional Credentials Actually Matter?

https://corvi.careers/blog/which-certifications-matter-by-job-family/
3•sp1982•7m ago•0 comments

What your dog's vet bill says about America's health care system (2016)

https://www.cbsnews.com/news/what-your-dogs-vet-bill-says-about-americas-healthcare/
1•paulpauper•9m ago•0 comments

The American suburbs are better than you think

https://www.noahpinion.blog/p/the-american-suburbs-are-better-than
2•paulpauper•9m ago•0 comments

California rocked by another earthquake that will unleash the Big One

https://www.dailymail.com/sciencetech/article-15973745/california-earthquake-unlocks-san-andreas-...
2•Bender•12m ago•2 comments

Ask HN: How do you troubleshoot desktop Linux crashes/freezes?

1•Curiositry•12m ago•0 comments

Wyoming's 'Explosive Diarrhea' Cases Double, Linked to Travel Outside of U.S.

https://cowboystatedaily.com/2026/07/13/wyomings-explosive-diarrhea-cases-double-linked-to-travel...
2•Bender•14m ago•1 comments

Show HN: Nihonpost – I parsed Japan Post's KEN_ALL.CSV so you don't have to

https://github.com/Thiya11/nihonpost
2•kitsunechaos•19m ago•0 comments

Ask HN: AI Agent and harness containerization/security recommendations

1•dv35z•19m ago•0 comments

Why 'Asia's cleanest village' bans tourists on Sundays

https://www.bbc.com/travel/article/20260625-why-asias-cleanest-village-bans-tourists-on-sundays
1•gmays•19m ago•0 comments

Trump Shrinks Grand Staircase-Escalante and Bears Ears National Monuments

https://www.sltrib.com/news/environment/2026/07/13/president-trump-shrinks-bears-ears/
1•almog•20m ago•0 comments

Four awful new privacy-eroding features from Meta in a month

https://manualdousuario.net/en/meta-instagram-ai-facial-recognition/
3•rpgbr•22m ago•0 comments

Show HN: I built a one-prompt hackathon platform, free entry, sponsored prizes

https://1shotchallenge.ai
3•lucasmartinic•24m ago•0 comments

" We care deeply about your privacy and respect customer choice"

https://twitter.com/spacexai/status/2076692402442846289
2•telotortium•25m ago•0 comments

Show HN: A reproducible harness for catching agent-eval cheating

https://github.com/sebuzdugan/agent-eval-harness
1•sebuzdugan•27m ago•0 comments

Show HN: Raftig – Plant Breeding X Naval Combat Roguelike

https://raftig.seldoncortex.com/
1•EstanislaoStan•27m ago•0 comments

Karios AI Agent Carzy

https://github.com/adnqcr7-code/kairosv2
1•kairos_agent•34m ago•0 comments

Claude is just Mr. Meeseeks

https://github.com/thephw/claude-meseeks
2•patrickwiseman•35m ago•0 comments

Soofi – Sovereign Open Source Foundation Models

https://www.soofi.info/
1•karussell•35m ago•1 comments

NYC Launches "Public Interest Technology (Pit) Crew" to Build Digital Solutions

https://www.nyc.gov/mayors-office/news/2026/07/mayor-mamdani-launches--public-interest-technology...
1•ChrisArchitect•37m ago•1 comments

How does an LLM feel about you?

https://sackfield.substack.com/p/how-does-an-llm-feel-about-you
1•sackfield•38m ago•0 comments

Economists are coming around to the idea that AI really is killing jobs

https://qz.com/economists-ai-job-displacement-industrial-revolution-statement-071326
3•pseudolus•40m ago•2 comments

The Estranged Worlds of J. G. Ballard

https://lareviewofbooks.org/article/jg-ballard-illuminated-man-christopher-priest-nina-allan/
1•Caiero•41m ago•0 comments

A Large-Scale Empirical Study of AI-Generated Code in Real-World Repositories

https://arxiv.org/abs/2603.27130
1•softwaredoug•41m ago•0 comments

$65K to work at Anthropic? Debate ensues amid IPO wave

https://missionlocal.org/2026/07/anthropic-sf-affordability-ipo-housing-evictions-rent/
5•gcheong•42m ago•0 comments

Primate 0.40: Route pages, store enums, async schemas and events

https://primate.run/blog/primate-040
4•terrablue•42m ago•0 comments

DOOMQL – what if SQLite were the game engine?

https://github.com/petergpt/doomql
1•simonw•43m ago•1 comments

SHOW HN: Every Repo as a Unique Galaxy

https://gitgalaxy.io/
2•squid-protocol•45m ago•1 comments

Frankie: AI analyst you can email to get work done

https://getcompound.ai/blog/introducing-frankie
1•somerandomness•48m ago•0 comments