According to the comments on the question, I will start by assuming that $\alpha$ and $\beta$ are given.
Let's name some additional points on the sphere. Let $C$ be the point $(0,0,R)$ where the positive $z$ axis intersects the sphere.
The blue great circle intersects the $y,z$ plane in two points;
from those two points choose the one closer to $A$ and call it $D.$
The arrangement of points and arcs is shown in a schematic arrangement below. (This is not exactly to scale, because it is drawn as a plane figure while the actual figure is on the surface of a sphere.)

The figure below shows what it looks like on the sphere. Note that all arcs that are labeled with symbols ($\alpha,$ $\beta,$ $\gamma,$ $\delta,$ and $\theta$) are great-circle arcs, and the symbol is the name of the angle subtended by that arc at the center of the sphere.

Now we have a spherical triangle $\triangle ADC.$ Following the usual convention where the "sides" of the spherical triangle are measured by the angle (in radians) that they subtend at the center of the sphere,
side $AC$ has measure $\alpha$ and side $CD$ has measure $\beta.$
The spherical angle $\angle ADC$ is $\frac\pi2.$
Let $\eta = \angle CAD.$
According to the spherical law of sines,
$$ \frac{\sin\frac\pi2}{\sin\alpha} = \frac{\sin\eta}{\sin\beta}.$$
But $\sin\frac\pi2 = 1.$ Therefore
$\sin\eta = \frac{\sin\beta}{\sin\alpha}$
and $$\eta = \arcsin\left(\frac{\sin\beta}{\sin\alpha}\right).$$
For now, let's consider the variant of the problem in which $\theta$ is known and $\gamma$ is unknown.
Since $\theta$ is known, we can construct two points on the black small circle that subtend angle $\theta$ from $A$. Let the point labeled $B$ in the figure be one of those points.
The spherical triangle $\triangle ABC$ has sides of measure $\alpha$ opposite $A$ and $B$ and a side of measure $\theta$ opposite $C.$
Let $\zeta = \angle BAC.$
By the spherical law of cosines,
$$ \cos\alpha = \cos\alpha \cos\theta + \sin\alpha \sin\theta \cos\zeta. $$
Solving for $\zeta,$
$$ \zeta = \arccos\left(\frac{1 - \cos\theta}{\sin\theta}\cot\alpha\right). $$
From $B,$ construct an arc on the sphere to the closest point on the blue great circle. Call that point $E.$ The arc from $B$ to $E$ meets the blue great circle in a right angle.
So we now have a spherical triangle $\triangle ABE$ with a right angle at $E.$
Note that the side $AB$ of this triangle has angular measure $\theta,$
but it is not the arc shown in the diagram. The arc in the diagram is an arc of a small circle, whereas the side of a spherical triangle is always a great circle.
Let $\delta$ be the measure of the arc $BE.$
Let $\phi = \angle BAE.$ Then $\phi = \zeta - \eta,$ where $\zeta$ and $\eta$ have already been computed.
Now we have another spherical triangle, this time with a right angle
$\angle AEB.$ Applying the spherical law of sines again,
$$ \frac{\sin\frac\pi2}{\sin\theta} = \frac{\sin\eta}{\sin\delta}.$$
Solving for $\delta,$
$$ \delta = \arcsin(\sin\theta \sin\phi). $$
The distance between $B$ and $E$ is also the distance between the two points where the blue circle intersect the $y,z$ plane, namely $D$ and $F$, the point on the blue small circle closest to $D$. Hence
$$ \gamma = \beta + \delta. $$