Skip to content

Connect OpenClaw to NASA

Let an OpenClaw agent query NASA's open APIs for astronomy imagery, near-Earth objects, space weather, Earth events and research data, with no credentials handed to the agent.

Tags:integrations

NASA publishes an enormous amount of data through its open APIs: the Astronomy Picture of the Day, Mars rover photos, the near-Earth asteroid catalog, space weather alerts, Earth observation imagery, climate and solar data from POWER, the Exoplanet Archive, the technical reports server and more. Educators, researchers, journalists, hobbyists and anyone building a product on top of Earth or space data use them. The work is rarely hard, but it is fiddly: each API has its own parameters and formats, and pulling a week of asteroid approaches or a year of solar radiation for one site means a lot of small requests and reformatting.

With Claworc’s External Connections, an OpenClaw agent can query NASA’s APIs on your behalf. You add your api.nasa.gov key once, Composio holds it, and the agent gets an auto-generated claworc-nasa skill that tells it which NASA tools exist and how to call them. The agent never sees the key itself.

Composio’s NASA toolkit exposes 136 actions spanning imagery, planetary science, space weather, Earth science, biology and research archives. In practice an OpenClaw agent leans on a handful of capabilities:

  • Astronomy Picture of the Day — today’s or any date’s image, with its title, explanation and high-resolution URL.
  • Mars rover photos — images from Perseverance, Curiosity, Opportunity or Spirit for a given Martian sol, with camera and date metadata.
  • Track near-Earth asteroids — objects by closest-approach date, with size, velocity, miss distance and hazard classification, plus a detailed lookup for a single object.
  • Space weather alerts — notifications and solar flare events from DONKI, including flare class and timing.
  • Natural events on Earth — current wildfires, storms, floods, volcanoes and more from the Earth Observatory Natural Event Tracker.
  • Climate and solar data by location — daily temperature, solar radiation, wind, humidity and precipitation for any coordinates from POWER, from 1981 to near real time.
  • Research archives — search the NASA Technical Reports Server and query confirmed exoplanets and Kepler objects of interest.

Every action goes through a small broker running next to the agent, so the agent only needs to describe what it wants done in plain language and let the skill handle the rest.

Ask the agent each morning for a short post: today’s APOD with a one-line caption, any asteroids passing closer than the Moon this week, and any active DONKI space weather notifications. It fetches the picture, the asteroid approaches and the space weather alerts, and drops the result wherever your team reads it.

“Give me daily solar radiation and temperature for these coordinates for all of 2025, and summarize by month.” The agent pulls the daily series from POWER, aggregates it, and returns a table you can paste into a feasibility model. Repeat for five candidate sites and it produces the comparison.

Before a grant application, ask the agent to search NTRS for reports on a topic from a specific NASA center in the last five years and list titles, authors and links. Then “which confirmed exoplanets around M-dwarfs were added to the archive this year?” is a single query of the Exoplanet Archive away.

Connecting NASA takes three steps: an admin adds a Composio API key to Claworc’s settings, you open the instance’s Settings tab, click + Add connection, pick NASA and enter your NASA API key. The claworc-nasa skill appears in the instance a moment later. The full walkthrough, including the exact Composio permissions the key needs, is in the External Connections documentation.